logo

tape-lite

tape shim based on node:test+node:assert with no dependencies

test.js (547B)


  1. // SPDX-FileCopyrightText: 2023 Haelwenn (lanodan) Monnier <contact+tape-lite@hacktivis.me>
  2. // SPDX-License-Identifier: MIT
  3. var test = require('tape-lite');
  4. // no name
  5. test(function(t) { t.equal(typeof Date.now, 'function'); });
  6. test('name + callback', function(t) { t.equal(typeof Date.now, 'function'); });
  7. test('name + opts + callback',
  8. {skip : false},
  9. function(t) { t.equal(typeof Date.now, 'function'); });
  10. /*
  11. test('test using promises', async function (t) {
  12. const result = await someAsyncThing();
  13. t.ok(result);
  14. });
  15. */