refactor: make fs shim a commonjs module to match node.js fs module
This commit is contained in:
parent
11e05e131b
commit
b3caddcfec
|
@ -62,7 +62,4 @@ const fs = new Proxy(fsInstance, {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = fs;
|
||||||
__esModule: true,
|
|
||||||
default: fs,
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
const expect = require('chai').expect;
|
const expect = require('chai').expect;
|
||||||
const utils = require('../../lib/test-utils');
|
const utils = require('../../lib/test-utils');
|
||||||
const fs = utils.shimIndexedDB(() => require('../../../shims/fs').default);
|
const fs = utils.shimIndexedDB(() => require('../../../shims/fs'));
|
||||||
|
|
||||||
describe('fs shim', () => {
|
describe('fs shim', () => {
|
||||||
it('should be defined', () => {
|
it('should be defined', () => {
|
||||||
|
|
Loading…
Reference in New Issue