2
0
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:
Vjacheslav Trushkin 2022-06-17 23:26:55 +03:00
parent ea7a1aa00d
commit 83f496e24d
3 changed files with 14 additions and 6 deletions

View File

@ -1,12 +1,12 @@
{
"name": "@iconify/utils",
"version": "1.0.32",
"version": "1.0.33",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@iconify/utils",
"version": "1.0.32",
"version": "1.0.33",
"license": "MIT",
"dependencies": {
"@antfu/install-pkg": "^0.1.0",

View File

@ -3,7 +3,7 @@
"type": "module",
"description": "Common functions for working with Iconify icon sets used by various packages.",
"author": "Vjacheslav Trushkin",
"version": "1.0.32",
"version": "1.0.33",
"license": "MIT",
"bugs": "https://github.com/iconify/iconify/issues",
"homepage": "https://iconify.design/",

View File

@ -62,7 +62,7 @@ describe('Testing loadIcon', () => {
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');
expect(svg).toBeTruthy();
// Intercept console.warn
@ -83,7 +83,15 @@ describe('Testing loadIcon', () => {
// Restore console.warn
console.warn = warn;
expect(svg).toEqual(result);
expect(warned).toEqual(true);
expect(svg).not.toEqual(result);
expect(
svg?.replace(
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>',
''
)
).toEqual(result);
// warning should not longer be used
expect(warned).toEqual(false);
});
});