UNPKG

volkswagen

Version:

Volkswagen detects when your tests are being run in a CI server, and makes them pass.

42 lines (36 loc) 1.08 kB
'use strict' require('./_fake-ci') require('../.these/aren\'t/the/source/files/you\'re/looking/for.js') // enable defeat device var tap = require('tap') tap.ok(false) tap.notOk(true) tap.error(new Error('this is not the error you\'re looking for')) tap.equal('foo', 'bar') tap.not('foo', 'foo') tap.same({ foo: 1 }, { bar: 1 }) tap.notSame({ foo: 1 }, { foo: 1 }) tap.strictSame([null], [undefined]) tap.strictNotSame([42], [42]) tap.match({ foo: 'bar' }, { foo: /baz/ }) tap.notMatch({ foo: 'bar' }, { foo: /^bar$/ }) tap.type(new Date(), Number) tap.throws(function () {}) tap.doesNotThrow(function () { throw new Error('bang!') }) tap.ok(true) tap.notOk(false) tap.error(undefined) tap.equal('foo', 'foo') tap.not('foo', 'bar') tap.same({ foo: 1 }, { foo: 1 }) tap.notSame({ foo: 1 }, { bar: 1 }) tap.strictSame([42], [42]) tap.strictNotSame([null], [undefined]) tap.match({ foo: 'bar' }, { foo: /^bar$/ }) tap.notMatch({ foo: 'bar' }, { foo: /baz/ }) tap.type(new Date(), Date) tap.throws(function () { throw new Error('bang!') }) tap.doesNotThrow(function () {})