mirror of
https://github.com/iconify/iconify.git
synced 2024-11-09 23:00:56 +00:00
chore: update dependencies for utils, clean up tests
This commit is contained in:
parent
d060d3d1df
commit
f17693900b
@ -377,20 +377,21 @@
|
||||
"@antfu/utils": "^0.7.2",
|
||||
"@iconify/types": "workspace:^",
|
||||
"debug": "^4.3.4",
|
||||
"kolorist": "^1.6.0",
|
||||
"local-pkg": "^0.4.2"
|
||||
"kolorist": "^1.7.0",
|
||||
"local-pkg": "^0.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify-json/flat-color-icons": "^1.1.3",
|
||||
"@iconify-json/flat-color-icons": "^1.1.6",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/jest": "^29.2.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
||||
"eslint": "^8.30.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"@types/jest": "^29.4.0",
|
||||
"@types/node": "^18.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
||||
"eslint": "^8.34.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"typescript": "^4.9.4",
|
||||
"unbuild": "^1.0.2",
|
||||
"vitest": "^0.26.2"
|
||||
"rimraf": "^4.1.2",
|
||||
"typescript": "^4.9.5",
|
||||
"unbuild": "^1.1.1",
|
||||
"vitest": "^0.28.5"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { promises as fs } from 'fs';
|
||||
import { getCustomIcon } from '../lib';
|
||||
import type { IconifyLoaderOptions } from '../lib';
|
||||
import { getCustomIcon } from '../lib/loader/custom';
|
||||
import type { IconifyLoaderOptions } from '../lib/loader/types';
|
||||
|
||||
const fixturesDir = './tests/fixtures';
|
||||
|
||||
|
@ -6,12 +6,12 @@ describe('Testing loadIcon with @iconify-json/flat-color-icons>', () => {
|
||||
expect(result).toBeTruthy();
|
||||
});
|
||||
|
||||
test('loadIcon adds xmlns:xlink', async () => {
|
||||
test('loadIcon should not add xmlns:xlink', async () => {
|
||||
const result = await loadNodeIcon('flat-color-icons', 'up-right', {
|
||||
addXmlNs: true,
|
||||
});
|
||||
expect(result).toBeTruthy();
|
||||
expect(result && result.indexOf('xmlns:xlink=') > -1).toBeTruthy();
|
||||
expect(result && result.indexOf('xmlns:xlink=') === -1).toBeTruthy();
|
||||
});
|
||||
|
||||
test('loadIcon with customize with default style and class', async () => {
|
||||
|
1762
pnpm-lock.yaml
1762
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user