MCPcopy Create free account
hub / github.com/andreypopp/reactify / assertContains

Function assertContains

test/reactify.js:21–25  ·  view source on GitHub ↗
(bundle, code)

Source from the content-addressed store, hash-verified

19 }
20
21 function assertContains(bundle, code) {
22 code = normalizeWhitespace(code);
23 bundle = normalizeWhitespace(bundle);
24 assert(bundle.indexOf(code) > -1, "bundle does not contain: " + code);
25 }
26
27 it('works for *.js with pragma', function(done) {
28 bundle('./fixtures/main.js', function(err, result) {

Callers 1

reactify.jsFile · 0.85

Calls 1

normalizeWhitespaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…