How to use the isUndefined function from chai

Find comprehensive JavaScript chai.isUndefined code examples handpicked from public code repositorys.

15
16
17
18
19
20
21
22
23
  it('Should return an empty object for an empty string input.', () => {
    assert.deepEqual(letterPositions(''), {});
  });


  it('Should return undefined for a letter not in the input string.', () => {
    assert.isUndefined(letterPositions('hello')['s']);
  });
});
fork icon0
star icon0
watch icon1