first
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @format
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactTestRenderer from 'react-test-renderer';
|
||||
import App from '../App';
|
||||
|
||||
test('renders correctly', async () => {
|
||||
await ReactTestRenderer.act(() => {
|
||||
ReactTestRenderer.create(<App />);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
import multiply from "../multiply"
|
||||
|
||||
describe ("multiply group",() => {
|
||||
test("multiply of 2 and 3 is 6", () => {
|
||||
const mult = multiply(2,3);
|
||||
expect(mult).toBe(6)
|
||||
});
|
||||
test("multiply of 6 and 3 is 18", () => {
|
||||
const mult = multiply(6,3);
|
||||
expect(mult).toBe(18)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,16 @@
|
||||
import subtraction from "../testing/subtraction";
|
||||
|
||||
describe ("subtraction group",() => {
|
||||
test("multiply of 6 and 1 is 5", () => {
|
||||
const subt = subtraction(6,1);
|
||||
expect(subt).toBe(5)
|
||||
});
|
||||
test("subtraction of 6 and 3 is 3", () => {
|
||||
const subt = subtraction(6,3);
|
||||
expect(subt).toBe(3)
|
||||
})
|
||||
it("subtraction of 6 and 7 is -1", () => {
|
||||
const subt = subtraction(6,7);
|
||||
expect(subt).toBe(-1)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user