-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Would make migrating from tape easier if AVA & tape shared the same API.
Below is the full list of tape
apis that don't exist in AVA. Most of these would only require a simple alias e.g. Test.prototype.deepEqual = Test.prototype.same
Though it's possible there's benefit in divorcing the tape API entirely & just keeping the current, simpler API. For example, not sure if it was ever a good idea to support both deepEquals
and deepEqual
other than to encourage bikeshedding within a team about which one to use.
const TapeTest = require('tape/lib/test')
const AVATest = require('ava/lib/test')
Object.keys(TapeTest.prototype).filter(k => !Object.keys(AVATest.prototype).includes(k))
[ 'test',
'comment',
'timeoutAfter',
'_end',
'_exit',
'_pendingAsserts',
'skip',
'notok',
'iferror',
'ifErr',
'strictEquals',
'strictEqual',
'isEqual',
'equals',
'equal',
'isInequal',
'doesNotEqual',
'isNot',
'isNotEqual',
'notStrictEquals',
'notStrictEqual',
'notEquals',
'notEqual',
'isEquivalent',
'deepEquals',
'deepEqual',
'looseEquals',
'looseEqual',
'deepLooseEqual',
'isInequivalent',
'isNotEquivalent',
'isNotDeeply',
'isNotDeepEqual',
'notDeeply',
'notEquivalent',
'notDeepEqual',
'notLooseEquals',
'notLooseEqual',
'notDeepLooseEqual' ]
Related to #96
huan, AaronHarris and paambaati