This commit is contained in:
10 files changed
+24
-24
No files matched your search
@@ -121,7 +121,7 @@ test('every rendered view draws for a program that has what it needs, with the a
|
||||
assert.match(tests.html, /way of failing/);
|
||||
const machine = renderStatic({ view: 'machine', files: { asm: problemById('asm-two-pointers').sources.asm }, setup: problemById('asm-two-pointers').setup });
|
||||
assert.match(machine.markdown, /\| instructions \| \d+ \|/);
|
||||
const life = renderStatic({ view: 'life', files: { mojo: fs.readFileSync(ROOT + 'core/mojo/stress/lifecycle-moves.mojo', 'utf8') } });
|
||||
const life = renderStatic({ view: 'life', files: { mojo: fs.readFileSync(ROOT + 'core/library/mojo/stress/lifecycle-moves.mojo', 'utf8') } });
|
||||
assert.ok((life.html.match(/life-row/g) ?? []).length >= 3);
|
||||
assert.doesNotMatch(life.html, /Click a mark/, 'a page has no stepper to move');
|
||||
assert.equal(STATIC_VIEWS.length, 12);
|
||||
|
||||
Reference in new issue
Block a user