Run Functional Tests Using a Headless Browser II

Greetings guys, I have this error and I have been browsing and investigating and it still seems that I have not calmly stopped to see the error

This appears in the reply console

This is my code currently

      test('Submit the surname "Vespucci" in the HTML form', function (done) {
        browser.fill('surname', 'Vespucci').then(() =>{
            browser.assert.success();
            browser.assert.text('span#name', 'Amerigo');
            browser.assert.text('span#surname', 'Vespucci');
            browser.assert.element('span#dates', 1)
            done();
            });
          });
        });
    });
type or paste code here