Skip to content

Commit

Permalink
handle export and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyZombies committed Aug 29, 2024
1 parent d8f28d3 commit 06ab07f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ exports.default = profiles;

module.exports = profiles;
module.exports.proxyBundle = proxyBundle;
module.exports.default = profiles;
2 changes: 2 additions & 0 deletions test/e2e/require.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

const { test, strict } = require('poku');
const awsCaBundle = require('../../lib/index.js');
const { ca: awsCas } = require('../../lib/index.js').default;
const { proxyBundle } = require('../../lib/index.js');

test('Testing require (CJS)', () => {
strict(typeof awsCaBundle?.ca?.length === 'number', 'Default require');
strict(typeof awsCas?.length === 'number', 'Default require with default property present');
strict(typeof proxyBundle?.ca?.length === 'number', '"proxyBundle" require');
strict(
typeof awsCaBundle.proxyBundle?.ca?.length === 'number',
Expand Down

0 comments on commit 06ab07f

Please sign in to comment.