summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts
blob: 01bccbc2d15bb984841521fbc5b58cc4be84e701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { JoinPipe } from './join.pipe';

describe('ListPipe', () => {
  const pipe = new JoinPipe();

  it('create an instance', () => {
    expect(pipe).toBeTruthy();
  });

  it('transforms "[1,2,3]"', () => {
    expect(pipe.transform([1, 2, 3])).toBe('1, 2, 3');
  });
});