forked from PluralFlux/PluralFlux
Tests are mostly complete (though some are failing -- to be fixed in the async/await refactor. Also refactored, fixed bugs found while testing, and added ability to type `pf;m` instead of `pf;member`. --------- Co-authored-by: Aster Fialla <asterfialla@gmail.com>
19 lines
400 B
JavaScript
19 lines
400 B
JavaScript
const {enums} = require("../../src/enums");
|
|
|
|
const fetchMock = require('jest-fetch-mock');
|
|
fetchMock.enableMocks();
|
|
|
|
const {utils} = require("../../src/helpers/utils.js");
|
|
|
|
describe('utils', () => {
|
|
|
|
beforeEach(() => {
|
|
jest.resetModules();
|
|
jest.clearAllMocks();
|
|
})
|
|
|
|
afterEach(() => {
|
|
// restore the spy created with spyOn
|
|
jest.restoreAllMocks();
|
|
});
|
|
}) |