var assert = require('assert');
describe('Example.com', function() {
    describe('page content', function() {
        it('should navigate to example.com', () =>
            Browser.url('http://example.com')
        );
        it('should find a heading containing "Example Domain"', () =>
            Browser.getText('h1')
                .then((text) => assert(text == 'Example Domain'))
        );
    });
});

var assert = require('assert');
describe('Example.com', function() {
    describe('page content', function() {
        it('should navigate to example.com', (done) => {
            Browser.url('http://example.com')
                .then(done);
        });
        it('should find a heading containing "Example Domain"', (done) => {
            Browser.getText('h1')
                .then((text) => assert(text == 'Example Domain'))
                .then(done);
        });
    });
});

Fix to example domain snippets
Fix to example domain snippets

