import { suite , test } from '@testdeck/mocha' ; import { data } from '../../../src' ; import { User } from '../../model/User' ; import { BaseTest } from './baseTest' ; @ suite class TestData extends BaseTest { static testData = ( ) => { return new User ( 'Test' , 'User' ) ; } ; @ data ( TestData . testData ) @ data . naming ( ( value ) => `shouldCall${ value . toString ( ) }DataOnTest` ) @ test shouldCallDataOnTest ( value ) { } @ data ( '' ) shouldNotBeExecuted ( value ) { } }