import { Trackable } from './trackable.decorator' ; describe ( 'Trackable' , ( ) => { describe ( 'isTrackable' , ( ) => { it ( 'should log true by default' , ( ) => { @ Trackable ( ) class ClassMockTrackable { } const classMock = new ClassMockTrackable ( ) ; const result = Trackable . isTrackable ( classMock ) ; expect ( result ) . toBeTruthy ; } ) ; it ( 'should log false if decorator is not instantiate' , ( ) => { class ClassMockNotTrackable { } const classMock = new ClassMockNotTrackable ( ) ; const result = Trackable . isTrackable ( classMock ) ; expect ( result ) . toBeFalsy ; } ) ; } ) ; } ) ;