Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-ter-Doest committed Jun 11, 2024
1 parent 254489e commit d2dcb3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
9 changes: 0 additions & 9 deletions spec/a-sekmani-test.js

This file was deleted.

18 changes: 10 additions & 8 deletions spec/test_esm_bundle/spec/check_imports_spec.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
const libPath = 'dist/esm/index.js'

describe('Module tests', () => {
let myModule;
let myLib

beforeAll(() => {
// Assuming the module is named 'myModule' and is located in the 'src' directory
myModule = require('./src/myModule');
});
import * as myLib from libPath
})

// List of functions and classes expected to be exported by the module
const expectedExports = ['function1', 'function2', 'Class1', 'Class2'];
const expectedExports = ['Metaphone']

expectedExports.forEach((exportName) => {
it(`should have an export named ${exportName}`, () => {
expect(myModule[exportName]).toBeDefined();
});
});
});
expect(myLib[exportName]).toBeDefined()
})
})
})

0 comments on commit d2dcb3c

Please sign in to comment.