mirror of
https://github.com/iconify/iconify.git
synced 2024-11-08 14:20:57 +00:00
Utils: publish update
This commit is contained in:
parent
ea7a1aa00d
commit
83f496e24d
4
packages/utils/package-lock.json
generated
4
packages/utils/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@iconify/utils",
|
"name": "@iconify/utils",
|
||||||
"version": "1.0.32",
|
"version": "1.0.33",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@iconify/utils",
|
"name": "@iconify/utils",
|
||||||
"version": "1.0.32",
|
"version": "1.0.33",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/install-pkg": "^0.1.0",
|
"@antfu/install-pkg": "^0.1.0",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Common functions for working with Iconify icon sets used by various packages.",
|
"description": "Common functions for working with Iconify icon sets used by various packages.",
|
||||||
"author": "Vjacheslav Trushkin",
|
"author": "Vjacheslav Trushkin",
|
||||||
"version": "1.0.32",
|
"version": "1.0.33",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": "https://github.com/iconify/iconify/issues",
|
"bugs": "https://github.com/iconify/iconify/issues",
|
||||||
"homepage": "https://iconify.design/",
|
"homepage": "https://iconify.design/",
|
||||||
|
@ -62,7 +62,7 @@ describe('Testing loadIcon', () => {
|
|||||||
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
test.skip('CustomCollection Icon with XML heading', async () => {
|
test('CustomCollection Icon with XML heading', async () => {
|
||||||
const svg = await loader('1f3eb');
|
const svg = await loader('1f3eb');
|
||||||
expect(svg).toBeTruthy();
|
expect(svg).toBeTruthy();
|
||||||
// Intercept console.warn
|
// Intercept console.warn
|
||||||
@ -83,7 +83,15 @@ describe('Testing loadIcon', () => {
|
|||||||
// Restore console.warn
|
// Restore console.warn
|
||||||
console.warn = warn;
|
console.warn = warn;
|
||||||
|
|
||||||
expect(svg).toEqual(result);
|
expect(svg).not.toEqual(result);
|
||||||
expect(warned).toEqual(true);
|
expect(
|
||||||
|
svg?.replace(
|
||||||
|
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>',
|
||||||
|
''
|
||||||
|
)
|
||||||
|
).toEqual(result);
|
||||||
|
|
||||||
|
// warning should not longer be used
|
||||||
|
expect(warned).toEqual(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user