xref: /third_party/node/test/parallel/test-internal-assert.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci// Flags: --expose-internals
21cb0ef41Sopenharmony_ci'use strict';
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci// This tests that the internal assert module works as expected.
51cb0ef41Sopenharmony_ci// The failures are tested in test/message.
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cirequire('../common');
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciconst internalAssert = require('internal/assert');
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci// Should not throw.
121cb0ef41Sopenharmony_ciinternalAssert(true);
131cb0ef41Sopenharmony_ciinternalAssert(true, 'fhqwhgads');
14

Indexes created Thu Nov 07 10:32:03 CST 2024