ickyrr-gagarin
Version:
A current updated fork of gagarin
19 lines (15 loc) • 452 B
JavaScript
describe('Add script helper', function () {
var server = meteor();
var client = browser(server);
it('should be able to use addScript helper', function () {
return client
.execute(function () {
return document.location.origin;
})
.then(function (location) {
return client.addScript(location + '/test.js', function () {
return !!window.thisPropertyIsAddedByTestJS;
});
});
});
});