2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 14:13:06 +00:00

Fix tests for SVG framework

This commit is contained in:
Vjacheslav Trushkin 2020-06-12 00:46:47 +03:00
parent a0aabb9b50
commit a088b64b58
4 changed files with 6 additions and 6 deletions

View File

@ -3,19 +3,19 @@ import chai from 'chai';
import { getNode } from './node';
import { browserModules } from '@iconify/iconify/lib/modules';
import { observer } from '@iconify/iconify/lib/modules/observer';
import { observer } from '@iconify/iconify/lib/observer/observer';
const expect = chai.expect;
describe('Testing observer creation', () => {
it('Creating observer and triggering event', done => {
it('Creating observer and triggering event', (done) => {
const node = getNode('observer-creation');
browserModules.root = node;
let counter = 0;
node.innerHTML = '<div></div><ul><li>test</li><li>test2</li></ul>';
observer.init(root => {
observer.init((root) => {
expect(root).to.be.equal(node);
counter++;

View File

@ -4,7 +4,7 @@ import chai from 'chai';
import { getNode } from './node';
import { elementFinderProperty } from '@iconify/iconify/lib/element';
import { browserModules } from '@iconify/iconify/lib/modules';
import { observer } from '@iconify/iconify/lib/modules/observer';
import { observer } from '@iconify/iconify/lib/observer/observer';
const expect = chai.expect;

View File

@ -7,7 +7,7 @@ import { finder as iconifyFinder } from '@iconify/iconify/lib/finders/iconify';
import { finder as iconifyIconFinder } from '@iconify/iconify/lib/finders/iconify-icon';
import { getStorage, addIconSet } from '@iconify/core/lib/storage';
import { browserModules } from '@iconify/iconify/lib/modules';
import { scanDOM } from '@iconify/iconify/lib/scan';
import { scanDOM } from '@iconify/iconify/lib/scanner/scan';
const expect = chai.expect;

View File

@ -11,7 +11,7 @@ import { coreModules } from '@iconify/core/lib/modules';
import { finder as iconifyFinder } from '@iconify/iconify/lib/finders/iconify';
import { finder as iconifyIconFinder } from '@iconify/iconify/lib/finders/iconify-icon';
import { browserModules } from '@iconify/iconify/lib/modules';
import { scanDOM } from '@iconify/iconify/lib/scan';
import { scanDOM } from '@iconify/iconify/lib/scanner/scan';
const expect = chai.expect;