Skip to content

Commit

Permalink
Initialize and teardown jsdomGlobal
Browse files Browse the repository at this point in the history
  • Loading branch information
ddamato committed Jun 16, 2020
1 parent 90abf4b commit c460355
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/consolidateSheet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { expect } from 'chai';

import consolidateSheet from '../src/consolidateSheet.js';

jsdomGlobal()();

describe('consolidateSheet', function () {
it('should be a function', function () {
expect(consolidateSheet).to.be.a('function');
Expand Down
2 changes: 2 additions & 0 deletions test/createSymbols.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { expect } from 'chai';

import createSymbols from '../src/createSymbols.js';

jsdomGlobal()();

describe('createSymbols', function () {
it('should be a function', function () {
expect(createSymbols).to.be.a('function');
Expand Down
2 changes: 2 additions & 0 deletions test/injectionManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { expect } from 'chai';

import { injectionStyle, injectionAttrs, injectionFn } from '../src/injectionManager.js';

jsdomGlobal()();

describe('injectionManager', function () {
it('should export style', function () {
expect(injectionStyle).to.equal('<style>@keyframes nodeDetected { to { opacity: 1; } }</style>');
Expand Down
2 changes: 2 additions & 0 deletions test/savager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { expect } from 'chai';

import Savager from '../src/savager.js';

jsdomGlobal()();

describe('Savager', function () {

it('should be a function', function () {
Expand Down

0 comments on commit c460355

Please sign in to comment.