Skip to content

Commit

Permalink
test(core): add node transform-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 6, 2024
1 parent f48cbe9 commit c07ad47
Showing 1 changed file with 24 additions and 0 deletions.
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)
})

0 comments on commit c07ad47

Please sign in to comment.