import test from 'unit.js' ; import { BigintTransformer } from '../transformers' ; describe ( 'Test Transformers' , ( ) => { it ( 'BigIntTransformer' , done => { test . value ( BigintTransformer . to ( 1 ) ) . is ( 1 ) ; test . value ( BigintTransformer . to ( null ) ) . is ( null ) ; test . value ( BigintTransformer . to ( [ 1 , null ] ) ) . is ( [ 1 , null ] ) ; test . value ( BigintTransformer . from ( '1' ) ) . is ( 1 ) ; test . value ( BigintTransformer . from ( null ) ) . is ( null ) ; test . value ( BigintTransformer . from ( [ '1' , null ] ) ) . is ( [ 1 , null ] ) ; done ( ) ; } ) ; } ) ;