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",
|
||||
"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",
|
||||
|
@ -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/",
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user