mirror of
https://github.com/iconify/iconify.git
synced 2024-12-12 13:47:49 +00:00
Fix tests for SVG framework
This commit is contained in:
parent
a0aabb9b50
commit
a088b64b58
@ -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++;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user