Jest test shell

    0

    2

    FatherOfCurses

    The code should do something correctly.

    Library: jest

    Shortcut: test

    it('should do something correctly', () => {
      // arrange
      const expectedValue = "somevalue";
      // act
      const actualValue = "somefunctionOutput";
      // assert
      expect(actualValue).toEqual(expectedValue);
    });
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.