mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-03 17:44:33 +02:00
use assert equals
This commit is contained in:
parent
d45651aad2
commit
33b92babc0
3 changed files with 10 additions and 5 deletions
|
@ -35,7 +35,10 @@ casper.start(
|
|||
return debug_Intl_getLocale();
|
||||
});
|
||||
// Successfully changed locale
|
||||
this.test.assert(locale === 'ja');
|
||||
this.test.assertEquals(
|
||||
locale,
|
||||
'ja'
|
||||
);
|
||||
})
|
||||
.then(CasperUtils.testDone);
|
||||
}).run();
|
||||
|
|
|
@ -28,8 +28,9 @@ casper.start(
|
|||
var text = this.evaluate(function() {
|
||||
return document.querySelector('div.inside > div > p').innerText;
|
||||
});
|
||||
this.test.assert(
|
||||
text === "Go ahead and try it out on your own! After this " +
|
||||
this.test.assertEquals(
|
||||
text,
|
||||
"Go ahead and try it out on your own! After this " +
|
||||
"window closes, make two commits to complete the level"
|
||||
);
|
||||
})
|
||||
|
|
|
@ -25,8 +25,9 @@ casper.start(
|
|||
var text = this.evaluate(function() {
|
||||
return document.querySelector('p.helperText').innerText;
|
||||
});
|
||||
this.test.assert(
|
||||
text === 'You can hide this window with "hide goal"'
|
||||
this.test.assertEquals(
|
||||
text,
|
||||
'You can hide this window with "hide goal"'
|
||||
);
|
||||
})
|
||||
.then(CasperUtils.testDone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue