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);
        });
    });
});

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'))
        );
    });
});

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

