Files
directus/packages/sdk/tests/base/directus.browser.test.ts
Rob 8c965ba1e7 Fix SDK Tests (#7469)
* 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>
2021-08-19 10:51:45 -04:00

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