UNPKG

483 BJavaScriptView Raw
1"use strict";
2
3const audit = require('./audit');
4const assert = require('assert');
5
6describe(`audit`, function ()
7{
8 it(`should never fail`, async function ()
9 {
10 audit()
11 audit(1)
12 audit(1, 2)
13 audit(1, 2, 3)
14 audit(1, 2, 3, 4)
15 audit(1, 2, 3, 4, 5)
16 audit(1, 2, 3, 4, 5, 6)
17 let old = console.log
18 console.log = false;
19 audit(1, 2, 3, 4, 5, 6, 7)
20 console.log = old;
21 Date.prototype.toISOString = null;
22 audit(1, 2, 3, 4, 5, 6, 7)
23 })
24});