blob: 2a24e5fac440d4cd3251aaa8518903a5618f9a24 [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Test suite for local storage.
*/
import {lib} from '../index.js';
import {storageApiTest} from './lib_storage_test_util.js';
/**
* Initialize the storage fakes & APIs.
*/
beforeEach(function() {
// Make sure other/previous tests don't leak.
globalThis.sessionStorage.clear();
this.storage = new lib.Storage.Local(globalThis.sessionStorage);
});
storageApiTest();