2019-02-05 21:05:24 -08:00
|
|
|
// Flags: --expose-internals
|
|
|
|
'use strict';
|
|
|
|
|
2019-03-13 22:43:00 +08:00
|
|
|
// This tests that the internal assert module works as expected.
|
|
|
|
// The failures are tested in test/message.
|
|
|
|
|
2019-02-05 21:05:24 -08:00
|
|
|
require('../common');
|
|
|
|
|
|
|
|
const internalAssert = require('internal/assert');
|
|
|
|
|
|
|
|
// Should not throw.
|
|
|
|
internalAssert(true);
|
|
|
|
internalAssert(true, 'fhqwhgads');
|