Skip to content

Where is done and assert from? #13

@alanjames1987

Description

@alanjames1987

In the documentation under "Usage" where is done and assert coming from?

var phantom = require('x-ray-phantom');
var Xray = require('x-ray');

var x = Xray()
  .driver(phantom());

x('http://google.com', 'title')(function(err, str) {
  if (err) return done(err); // <----------- where is this defined?
  assert.equal('Google', str); // <----------- where is this defined?
  done(); // <----------- where is this defined?
})

I assume they are coming from a user defined assertion library, but I feel like that should be made more clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions