Answers for "jest not toBe"

0

jest not toBe

// .not - Test the opposite
const bestLaCroixFlavor = 'strawberry';
test('the best flavor is not coconut', () => {
  expect(bestLaCroixFlavor).not.toBe('coconut');
});
Posted by: Guest on October-10-2021

Code answers related to "jest not toBe"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language