-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(data): add test case for data that causes transitive to crash
Refs #39
- Loading branch information
1 parent
83262d5
commit d043d53
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* globals describe, it */ | ||
|
||
const Transitive = require('../lib/transitive') | ||
|
||
describe('transitive', () => { | ||
describe('issues', () => { | ||
it('transitive crashes with specific data (#39)', () => { | ||
const sampleData = require('./issue-39-data.json') | ||
|
||
const testDiv = document.createElement('div') | ||
const transitive = new Transitive({ el: testDiv }) | ||
|
||
transitive.updateData(sampleData) | ||
transitive.render() | ||
}) | ||
}) | ||
}) |