-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(core): add node transform-test.js
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/core/typescript/itk-wasm/test/node/interface-types/transform-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import test from 'ava' | ||
|
||
import { Transform, TransformType } from '../../../dist/index-node.js' | ||
|
||
test('transformType should have the same transformType passed to the constructor', t => { | ||
const transform = new Transform() | ||
const defaultTransformType = new TransformType() | ||
t.deepEqual(transform.transformType, defaultTransformType) | ||
}) | ||
|
||
test('name should have the default value of "Transform"', t => { | ||
const transform = new Transform() | ||
t.deepEqual(transform.name, 'Transform') | ||
}) | ||
|
||
test('numberOfFixedParameters should have a default value of 0', t => { | ||
const transform = new Transform() | ||
t.is(transform.numberOfFixedParameters, 0) | ||
}) | ||
|
||
test('numberOfParameters should have a default value of 0', t => { | ||
const transform = new Transform() | ||
t.is(transform.numberOfParameters, 0) | ||
}) |