Skip to content

Commit

Permalink
refactor: make fs shim a commonjs module to match node.js fs module
Browse files Browse the repository at this point in the history
  • Loading branch information
bcheidemann authored and humphd committed May 26, 2021
1 parent 11e05e1 commit b3caddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions shims/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,4 @@ const fs = new Proxy(fsInstance, {
},
});

module.exports = {
__esModule: true,
default: fs,
};
module.exports = fs;
2 changes: 1 addition & 1 deletion tests/spec/shims/fs.spec.js
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down

0 comments on commit b3caddc

Please sign in to comment.