2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-23 02:08:56 +00:00

chore: update dependencies for utils, clean up tests

This commit is contained in:
Vjacheslav Trushkin 2023-02-14 00:06:13 +02:00
parent d060d3d1df
commit f17693900b
4 changed files with 1580 additions and 213 deletions

View File

@ -377,20 +377,21 @@
"@antfu/utils": "^0.7.2", "@antfu/utils": "^0.7.2",
"@iconify/types": "workspace:^", "@iconify/types": "workspace:^",
"debug": "^4.3.4", "debug": "^4.3.4",
"kolorist": "^1.6.0", "kolorist": "^1.7.0",
"local-pkg": "^0.4.2" "local-pkg": "^0.4.3"
}, },
"devDependencies": { "devDependencies": {
"@iconify-json/flat-color-icons": "^1.1.3", "@iconify-json/flat-color-icons": "^1.1.6",
"@types/debug": "^4.1.7", "@types/debug": "^4.1.7",
"@types/jest": "^29.2.4", "@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.47.0", "@types/node": "^18.13.0",
"eslint": "^8.30.0", "@typescript-eslint/eslint-plugin": "^5.52.0",
"eslint-config-prettier": "^8.5.0", "eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.4", "typescript": "^4.9.5",
"unbuild": "^1.0.2", "unbuild": "^1.1.1",
"vitest": "^0.26.2" "vitest": "^0.28.5"
} }
} }

View File

@ -1,6 +1,6 @@
import { promises as fs } from 'fs'; import { promises as fs } from 'fs';
import { getCustomIcon } from '../lib'; import { getCustomIcon } from '../lib/loader/custom';
import type { IconifyLoaderOptions } from '../lib'; import type { IconifyLoaderOptions } from '../lib/loader/types';
const fixturesDir = './tests/fixtures'; const fixturesDir = './tests/fixtures';

View File

@ -6,12 +6,12 @@ describe('Testing loadIcon with @iconify-json/flat-color-icons>', () => {
expect(result).toBeTruthy(); 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', { const result = await loadNodeIcon('flat-color-icons', 'up-right', {
addXmlNs: true, addXmlNs: true,
}); });
expect(result).toBeTruthy(); 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 () => { test('loadIcon with customize with default style and class', async () => {

File diff suppressed because it is too large Load Diff