Files
PluralFlux/tests/helpers/utils.test.js
pieartsy 7fead5e3d7 feat: Add unit tests (#21)
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>
2026-02-24 12:42:23 -05:00

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();
});
})