mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: cloudcmd: migrate to ESM
This commit is contained in:
parent
e8a81c49ea
commit
4533a25c6f
184 changed files with 339 additions and 388 deletions
|
|
@ -1,11 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const {promisify} = require('node:util');
|
||||
const {tryToCatch} = require('try-to-catch');
|
||||
|
||||
const {test, stub} = require('supertape');
|
||||
|
||||
const callbackify = require('./callbackify');
|
||||
import {promisify} from 'node:util';
|
||||
import {tryToCatch} from 'try-to-catch';
|
||||
import {test, stub} from 'supertape';
|
||||
import callbackify from './callbackify.js';
|
||||
|
||||
test('cloudcmd: common: callbackify: error', async (t) => {
|
||||
const promise = stub().rejects(Error('hello'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue