2
0
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:
Vjacheslav Trushkin 2022-03-16 23:50:53 +02:00
parent 3f89dd6cec
commit 1736308a64
5 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -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

View File

@ -7,7 +7,7 @@ import {
cacheVersion,
versionKey,
countKey,
} from './fake_cache';
} from '../../lib/browser-storage/mock';
describe('Testing mocked localStorage', () => {
const provider = '';

View File

@ -12,7 +12,7 @@ import {
countKey,
hour,
cacheExpiration,
} from './fake_cache';
} from '../../lib/browser-storage/mock';
describe('Testing loading from localStorage', () => {
const provider = '';

View File

@ -18,7 +18,7 @@ import {
countKey,
hour,
cacheExpiration,
} from './fake_cache';
} from '../../lib/browser-storage/mock';
describe('Testing saving to localStorage', () => {
const provider = '';