mirror of https://github.com/facebook/jest.git
30 lines
582 B
JavaScript
30 lines
582 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
'use strict';
|
|
|
|
const sum = require('../sum');
|
|
|
|
it('no ancestors', () => {
|
|
expect(true).toBeTruthy();
|
|
});
|
|
|
|
describe('sum', () => {
|
|
it('adds numbers', () => {
|
|
expect(sum(1, 2)).toBe(3);
|
|
});
|
|
|
|
describe('failing tests', () => {
|
|
it('fails the test', () => {
|
|
expect(sum(1, 2)).toBe(4);
|
|
});
|
|
});
|
|
|
|
it.skip('skipped test', () => {
|
|
expect(sum(1, 2)).toBe(3);
|
|
});
|
|
});
|