mirror of
https://github.com/iconify/iconify.git
synced 2025-04-08 17:21:51 +00:00
Move browser storage mock to source in core
This commit is contained in:
parent
3f89dd6cec
commit
1736308a64
@ -79,6 +79,10 @@
|
||||
"require": "./lib/browser-storage/index.cjs",
|
||||
"import": "./lib/browser-storage/index.mjs"
|
||||
},
|
||||
"./lib/browser-storage/mock": {
|
||||
"require": "./lib/browser-storage/mock.cjs",
|
||||
"import": "./lib/browser-storage/mock.mjs"
|
||||
},
|
||||
"./lib/builder/functions": {
|
||||
"require": "./lib/builder/functions.cjs",
|
||||
"import": "./lib/builder/functions.mjs"
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { mock, count, config, emptyList } from '../../lib/browser-storage';
|
||||
import { mock, count, config, emptyList } from './index';
|
||||
|
||||
/**
|
||||
* Get next icon set prefix for testing
|
2
packages/core/tests/cache/basic-test.ts
vendored
2
packages/core/tests/cache/basic-test.ts
vendored
@ -7,7 +7,7 @@ import {
|
||||
cacheVersion,
|
||||
versionKey,
|
||||
countKey,
|
||||
} from './fake_cache';
|
||||
} from '../../lib/browser-storage/mock';
|
||||
|
||||
describe('Testing mocked localStorage', () => {
|
||||
const provider = '';
|
||||
|
2
packages/core/tests/cache/loading-test.ts
vendored
2
packages/core/tests/cache/loading-test.ts
vendored
@ -12,7 +12,7 @@ import {
|
||||
countKey,
|
||||
hour,
|
||||
cacheExpiration,
|
||||
} from './fake_cache';
|
||||
} from '../../lib/browser-storage/mock';
|
||||
|
||||
describe('Testing loading from localStorage', () => {
|
||||
const provider = '';
|
||||
|
2
packages/core/tests/cache/saving-test.ts
vendored
2
packages/core/tests/cache/saving-test.ts
vendored
@ -18,7 +18,7 @@ import {
|
||||
countKey,
|
||||
hour,
|
||||
cacheExpiration,
|
||||
} from './fake_cache';
|
||||
} from '../../lib/browser-storage/mock';
|
||||
|
||||
describe('Testing saving to localStorage', () => {
|
||||
const provider = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user