mirror of
https://github.com/directus/directus.git
synced 2026-02-17 07:31:52 -05:00
* POST instead of PATCH for invite accept test * Replace Jest JSDOM environment Using `jest-environment-jsdom-global` didn't seem to bring any used advantages over the default `jest-environment-node` * remove mockdate, use modern jest fake timers * update package lock Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com> Co-authored-by: Jay Cammarano <67079013+jaycammarano@users.noreply.github.com>
14 lines
276 B
TypeScript
14 lines
276 B
TypeScript
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
|
|
import { Directus, LocalStorage } from '../../src/base';
|
|
|
|
describe('browser sdk', function () {
|
|
const sdk = new Directus('http://example.com');
|
|
|
|
it('has storage', function () {
|
|
expect(sdk.storage).toBeInstanceOf(LocalStorage);
|
|
});
|
|
});
|