Skip to content

Commit

Permalink
test(data): add test case for data that causes transitive to crash
Browse files Browse the repository at this point in the history
Refs #39
  • Loading branch information
evansiroky committed Dec 21, 2016
1 parent 83262d5 commit d043d53
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/issue-39-data.json

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions __tests__/transitive.js
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()
})
})
})

0 comments on commit d043d53

Please sign in to comment.