replace jest with ava

This commit is contained in:
Robert Brignull 2020-05-04 18:50:13 +01:00
parent 27cc8b23fe
commit 0347b72305
11775 changed files with 84546 additions and 1440575 deletions

33
node_modules/concordance/lib/complexValues/global.js generated vendored Normal file
View file

@ -0,0 +1,33 @@
'use strict'
const constants = require('../constants')
const formatUtils = require('../formatUtils')
const lineBuilder = require('../lineBuilder')
const DEEP_EQUAL = constants.DEEP_EQUAL
const UNEQUAL = constants.UNEQUAL
function describe () {
return new GlobalValue()
}
exports.describe = describe
exports.deserialize = describe
const tag = Symbol('GlobalValue')
exports.tag = tag
class GlobalValue {
compare (expected) {
return this.tag === expected.tag
? DEEP_EQUAL
: UNEQUAL
}
formatDeep (theme) {
return lineBuilder.single(
formatUtils.wrap(theme.global, 'Global') + ' ' + theme.object.openBracket + theme.object.closeBracket)
}
}
Object.defineProperty(GlobalValue.prototype, 'isComplex', { value: true })
Object.defineProperty(GlobalValue.prototype, 'tag', { value: tag })