simple.js 384 Bytes
/* 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({}, 'abc', '#/a/b/c')
    expect(location.href).match(/\/a\/b\/c$/)
  })
})