Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
artemave committed Apr 5, 2018
1 parent 250b460 commit 9e92416
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/hyperdomIntegrationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ var h = hyperdom.html
var isBrowser = !require('is-node')
var createTestDiv = require('../lib/createTestDiv')

function wait (ms) {
return new Promise((resolve, reject) => {
setTimeout(resolve, ms)
})
}

if (isBrowser) {
describe('hyperdom integration', function () {
it('should find things rendered by hyperdom', function () {
Expand Down Expand Up @@ -77,9 +71,7 @@ if (isBrowser) {
}).then(function () {
return browser.find('select').select({text: 'Other'})
}).then(function () {
return wait(100).then(function () {
return browser.find('option:selected').shouldHave({text: 'Other'})
})
return browser.find('option:selected').shouldHave({text: 'Other'})
})
})
})
Expand Down

0 comments on commit 9e92416

Please sign in to comment.