test/src/index.spec.js
import expect from 'unexpected';
import * as globalExports from '../../src/index';
import Atviseproject from '../../src/lib/config/Atviseproject';
import NodeId from '../../src/lib/model/opcua/NodeId';
import Transformer, { TransformDirection } from '../../src/lib/transform/Transformer';
import PartialTransformer from '../../src/lib/transform/PartialTransformer';
import SplittingTransformer from '../../src/lib/transform/SplittingTransformer';
import DisplayTransformer from '../../src/transform/DisplayTransformer';
import ScriptTransformer from '../../src/transform/ScriptTransformer';
describe('atscm module', function () {
/** @test {Atviseproject} */
it('should export Atviseproject class', function () {
expect(globalExports.Atviseproject, 'to be', Atviseproject);
});
/** @test {NodeId} */
it('should export NodeId class', function () {
expect(globalExports.NodeId, 'to be', NodeId);
});
/** @test {Transformer} */
it('should export Transformer class', function () {
expect(globalExports.Transformer, 'to be', Transformer);
});
/** @test {TransformDirection} */
it('should export TransformDirection enum', function () {
expect(globalExports.TransformDirection, 'to be', TransformDirection);
});
/** @test {PartialTransformer} */
it('should export PartialTransformer class', function () {
expect(globalExports.PartialTransformer, 'to be', PartialTransformer);
});
/** @test {SplittingTransformer} */
it('should export SplittingTransformer class', function () {
expect(globalExports.SplittingTransformer, 'to be', SplittingTransformer);
});
/** @test {DisplayTransformer} */
it('should export DisplayTransformer class', function () {
expect(globalExports.DisplayTransformer, 'to be', DisplayTransformer);
});
/** @test {ScriptTransformer} */
it('should export ScriptTransformer class', function () {
expect(globalExports.ScriptTransformer, 'to be', ScriptTransformer);
});
});