MCPcopy
hub / github.com/basecamp/trix / testIf

Function testIf

src/test/test_helpers/test_helpers.js:66–72  ·  view source on GitHub ↗
(condition, ...args)

Source from the content-addressed store, hash-verified

64}
65
66export const testIf = function (condition, ...args) {
67 if (condition) {
68 test(...Array.from(args || []))
69 } else {
70 skip(...Array.from(args || []))
71 }
72}
73
74export const { skip, test } = QUnit
75

Callers 10

testFunction · 0.90
testFunction · 0.90
pasting_test.jsFile · 0.90
testFunction · 0.90
skipIfFunction · 0.85

Calls 1

testFunction · 0.50

Tested by 3

testFunction · 0.72
testFunction · 0.72
testFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…