| 1 |
import configscip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config. = require("../../config"scip-typescript npm regexp-match-indices 1.0.2 `config.ts`/); |
| 2 |
|
| 3 |
export function printKeyscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/printKey().(keyscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/printKey().(key): keyof any) { |
| 4 |
return typeof keyscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/printKey().(key) === 'symbol' ? keyscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/printKey().(key).toStringscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Symbol#toString().() : JSONscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/JSON#.stringifyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/JSON#stringify().(keyscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/printKey().(key)); |
| 5 |
} |
| 6 |
|
| 7 |
export function isDataDescriptorscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc): PropertyDescriptorscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/PropertyDescriptor#) { |
| 8 |
return typeof descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc) === 'object' && descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc) !== null && |
| 9 |
Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc), 'value') && |
| 10 |
!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc), 'get') && |
| 11 |
!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isDataDescriptor().(desc), 'set'); |
| 12 |
} |
| 13 |
|
| 14 |
export function isAccessorDescriptorscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc): PropertyDescriptorscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/PropertyDescriptor#, kindscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(kind)?: 'get' | 'get-set') { |
| 15 |
if (typeof descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc) !== 'object' || descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc) === null || |
| 16 |
Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'value') || |
| 17 |
Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'writable') || |
| 18 |
!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'get') && |
| 19 |
!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), "set")) { |
| 20 |
return false; |
| 21 |
} |
| 22 |
if (kindscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(kind) === 'get' || kindscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(kind) === 'get-set') { |
| 23 |
if (!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'get') || descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc).getscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/PropertyDescriptor#get(). === undefined) { |
| 24 |
return false; |
| 25 |
} |
| 26 |
} |
| 27 |
if (kindscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(kind) === 'get-set') { |
| 28 |
if (!Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'set') || descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc).setscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/PropertyDescriptor#set(). === undefined) { |
| 29 |
return false; |
| 30 |
} |
| 31 |
} |
| 32 |
if (kindscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(kind) === 'get') { |
| 33 |
if (Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc), 'set') && descscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isAccessorDescriptor().(desc).setscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/PropertyDescriptor#set(). !== undefined) { |
| 34 |
return false; |
| 35 |
} |
| 36 |
} |
| 37 |
return true; |
| 38 |
} |
| 39 |
|
| 40 |
export function isMatchingDescriptorscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().<Tscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().[T]>(actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual): TypedPropertyDescriptorscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#<Tscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().[T]>, expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected): Omitscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Omit#<TypedPropertyDescriptorscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#<Tscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().[T]>, "get" | "set"> = {}, equalerscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(equaler): (a: Tscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().[T], b: Tscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().[T]) => boolean = Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.isscip-typescript npm typescript 5.9.3 lib/`lib.es2015.core.d.ts`/ObjectConstructor#is().) { |
| 41 |
if (Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.prototypescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/ObjectConstructor#prototype..hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected), 'value')) { |
| 42 |
if (expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected).valuescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#value. === undefined ? actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).valuescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#value. !== undefined : actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).valuescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#value. === undefined || !equalerscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(equaler)(expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected).valuescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#value., actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).valuescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#value.)) { |
| 43 |
return false; |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
if (Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.prototypescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/ObjectConstructor#prototype..hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected), 'enumerable')) { |
| 48 |
if (expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected).enumerablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#enumerable. !== actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).enumerablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#enumerable.) { |
| 49 |
return false; |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
if (Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.prototypescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/ObjectConstructor#prototype..hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected), 'writable')) { |
| 54 |
if (expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected).writablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#writable. !== actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).writablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#writable.) { |
| 55 |
return false; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
if (Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.prototypescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/ObjectConstructor#prototype..hasOwnPropertyscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#hasOwnProperty()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/CallableFunction#call().(expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected), 'configurable')) { |
| 60 |
if (expectedscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(expected).configurablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#configurable. !== actualscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/isMatchingDescriptor().(actual).configurablescip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/TypedPropertyDescriptor#configurable.) { |
| 61 |
return false; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
return true; |
| 66 |
} |
| 67 |
|
| 68 |
export function setupModescip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/setupMode().(modescip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/setupMode().(mode): "lazy" | "spec-compliant") { |
| •69 |
let savedMode: typeof configscip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config..modescip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config.typeLiteral0:mode.; |
| 70 |
beforeEach(() => { |
| •71 |
savedMode = configscip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config..modescip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config.typeLiteral0:mode.; |
| 72 |
configscip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config..modescip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config.typeLiteral0:mode. = modescip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/setupMode().(mode); |
| 73 |
}); |
| •74 |
afterEach(() => { configscip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config..modescip-typescript npm regexp-match-indices 1.0.2 `config.ts`/config.typeLiteral0:mode. = savedMode; }); |
| 75 |
} |
| 76 |
|
| 77 |
export function describeEachModescip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/describeEachMode().(cbscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/describeEachMode().(cb): (mode: "lazy" | "spec-compliant") => void) { |
| 78 |
describe.each` |
| 79 |
mode |
| 80 |
${"lazy"} |
| 81 |
${"spec-compliant"} |
| 82 |
`('$mode', ({ mode }) => { |
| 83 |
setupModescip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/setupMode().(mode); |
| 84 |
cbscip-typescript npm regexp-match-indices 1.0.2 __tests__/_matchers/`utils.ts`/describeEachMode().(cb)(mode); |
| 85 |
}); |
| •86 |
} |