Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Seda põhjusel, et igal describel on argumendiks funtsioon, kuhu vahele testi kirjutad:
- const firstVariable = "Foo";
- describe('Kasutaja login', () => {
- const secondVariable = "Bar";
- it('should login successfully', (done) => {
- console.log(secondVariable); // Bar
- done();
- });
- });
- describe('Kasutaja logout', () => {
- console.log(secondVariable); // Undefined
- console.log(firstVariable); // Foo
- it('should logout successfully', (done) => {
- done();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement