Skip to content
Snippets Groups Projects
instance-by-name.pipe.spec.ts 387 B
Newer Older
  • Learn to ignore specific revisions
  • import { InstanceByNamePipe } from './instance-by-name.pipe';
    import { INSTANCE_LIST } from '../../../test-data';
    
    describe('[Shared][Pipes] InstanceByNamePipe', () => {
        let pipe = new InstanceByNamePipe();
    
        it('should return survey corresponding to the given name', () => {
            expect(pipe.transform(INSTANCE_LIST, 'myOtherInstance')).toEqual(INSTANCE_LIST[0]);
        });
    });