mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
18 lines
321 B
JavaScript
18 lines
321 B
JavaScript
import {test} from 'supertape';
|
|
import {omit} from '#common/omit';
|
|
|
|
test('cloudcmd: common: omit', (t) => {
|
|
const a = {
|
|
hello: 1,
|
|
world: 2,
|
|
};
|
|
|
|
const result = omit(a, ['world']);
|
|
|
|
const expected = {
|
|
hello: 1,
|
|
};
|
|
|
|
t.deepEqual(result, expected);
|
|
t.end();
|
|
});
|