-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: export unitTestUtils functions as a module (#76)
* fix: export unitTestUtils as a module * added test to verify unitTestUtils and its functions are exported
- Loading branch information
1 parent
1f03ff8
commit a148da9
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use strict'; | ||
|
||
const { unitTestUtils } = require('../../dist'); | ||
|
||
describe('Unit Test Utils', () => { | ||
it('should be defined', () => { | ||
expect(unitTestUtils).toBeDefined(); | ||
}); | ||
|
||
it('should have function checkUrlAndMethod', () => { | ||
expect(unitTestUtils.checkUrlAndMethod).toBeDefined(); | ||
}); | ||
|
||
it('should have function checkMediaHeaders', () => { | ||
expect(unitTestUtils.checkMediaHeaders).toBeDefined(); | ||
}); | ||
|
||
it('should have function checkUserHeader', () => { | ||
expect(unitTestUtils.checkUserHeader).toBeDefined(); | ||
}); | ||
|
||
it('should have function checkForSuccessfulExecution', () => { | ||
expect(unitTestUtils.checkForSuccessfulExecution).toBeDefined(); | ||
}); | ||
|
||
it('should have function getOptions', () => { | ||
expect(unitTestUtils.getOptions).toBeDefined(); | ||
}); | ||
|
||
it('should have function expectToBePromise', () => { | ||
expect(unitTestUtils.expectToBePromise).toBeDefined(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters