Skip to content

Commit

Permalink
STCOR-801 Move async localforage.clear to afterEach (#1409)
Browse files Browse the repository at this point in the history
* move async localforage.clear to afterEach

* Update CHANGELOG.md
  • Loading branch information
JohnC-80 authored Jan 25, 2024
1 parent fafd4f8 commit 592b1a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Opt-in: handle access-control via cookies. Refs STCOR-671.
* Opt-in: disable login when cookies are disabled. Refs STCOR-762.
* Add arial-label for `ProfileDropdown.js`. Refs STCOR-753.
* Move `localforage.clear()` to `afterEach` for test suite. Refs STCOR-801.

## [10.0.0](https://github.com/folio-org/stripes-core/tree/v10.0.0) (2023-10-11)
[Full Changelog](https://github.com/folio-org/stripes-core/compare/v9.0.0...v10.0.0)
Expand Down
5 changes: 4 additions & 1 deletion test/bigtest/helpers/setup-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default function setupApplication({
clearModules();
clearCookies(cookies);
reset();
localforage.clear();
this.server?.shutdown();
this.server = null;
this.app = null;
Expand All @@ -108,4 +107,8 @@ export default function setupApplication({
location: { get: location },
});
});

afterEach(async () => {
await localforage.clear();
});
}

0 comments on commit 592b1a0

Please sign in to comment.