12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
|
|
import setSession from "../../src/api/setSession";
|
||
|
|
import getSession from "../../src/api/getSession";
|
||
|
|
|
||
|
|
describe("set Session", () => {
|
||
|
|
test("session value is correct", () => {
|
||
|
|
const someSession = 'sample';
|
||
|
|
setSession(someSession);
|
||
|
|
const session = getSession();
|
||
|
|
expect(session).toBe(someSession);
|
||
|
|
});
|
||
|
|
});
|