d2-ui
Version:
18 lines (13 loc) • 382 B
JavaScript
/* global it, history, describe, location, expect */
var jsdom = require('../index')
describe('simple', function () {
jsdom()
it('has document', function () {
var div = document.createElement('div')
expect(div.nodeName).eql('DIV')
})
it('has history', function () {
history.pushState({}, null, '/a/b/c')
expect(location.href).match(/\/a\/b\/c$/)
})
})