UNPKG

540 BJavaScriptView Raw
1var assert = require('power-assert'), truthy = 'true', falsy = 'false';
2assert(assert._expr(assert._capt(falsy, 'arguments/0'), {
3 content: 'assert(falsy)',
4 filepath: 'test/fixtures/example.js',
5 line: 4
6}));
7assert.equal(assert._expr(assert._capt(truthy, 'arguments/0'), {
8 content: 'assert.equal(truthy, falsy)',
9 filepath: 'test/fixtures/example.js',
10 line: 5
11}), assert._expr(assert._capt(falsy, 'arguments/1'), {
12 content: 'assert.equal(truthy, falsy)',
13 filepath: 'test/fixtures/example.js',
14 line: 5
15}));