We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc52c2 commit 5f23666Copy full SHA for 5f23666
test/api-spec.js
@@ -160,4 +160,12 @@ describe('api', function () {
160
);
161
return compDirs('test/input/packthis-object-prototype/', 'tmp/packthis-object-prototype');
162
});
163
+ it('should export all functions also in the default export', () => {
164
+ const topLevelFunctions = Object.keys(asar).filter((key) => typeof asar[key] === 'function');
165
+ const defaultExportFunctions = Object.keys(asar.default).filter(
166
+ (key) => typeof asar.default[key] === 'function',
167
+ );
168
+
169
+ assert.deepStrictEqual(topLevelFunctions, defaultExportFunctions);
170
+ });
171
0 commit comments