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 = {
|
||||
__esModule: true,
|
||||
default: fs,
|
||||
};
|
||||
module.exports = fs;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
const expect = require('chai').expect;
|
||||
const utils = require('../../lib/test-utils');
|
||||
const fs = utils.shimIndexedDB(() => require('../../../shims/fs').default);
|
||||
const fs = utils.shimIndexedDB(() => require('../../../shims/fs'));
|
||||
|
||||
describe('fs shim', () => {
|
||||
it('should be defined', () => {
|
||||
|
|
Loading…
Reference in New Issue