MCPcopy
hub / github.com/kubernetes/test-infra / expect

Function expect

gubernator/static/build_test.js:6–10  ·  view source on GitHub ↗
(name, before, after)

Source from the content-addressed store, hash-verified

4describe('build', function() {
5 describe('ansi_to_html', function() {
6 function expect(name, before, after) {
7 it(name, function() {
8 assert.equal(build.ansi_to_html(before), after);
9 });
10 }
11 expect('passes through unchanged text', 'something', 'something');
12 expect('strips unknown codes', '\x1b[1;2;3fblah', 'blah');
13 expect('bolds text', 'a \x1b[1mbold\x1b[0m plan', 'a <em>bold</em> plan');

Callers 11

build_test.jsFile · 0.70
utils_test.tsFile · 0.50
test_path_to_queryMethod · 0.50
test_author_stateMethod · 0.50
test_assignee_stateMethod · 0.50
test_xrefsMethod · 0.50
test_reviewersMethod · 0.50
test_approversMethod · 0.50

Calls 1

equalMethod · 0.45

Tested by 9

test_path_to_queryMethod · 0.40
test_author_stateMethod · 0.40
test_assignee_stateMethod · 0.40
test_xrefsMethod · 0.40
test_reviewersMethod · 0.40
test_approversMethod · 0.40