Revert "Update README with Jest specific language. Update some spec files with new syntax"

This reverts commit e73c68fc01.
This commit is contained in:
Tatiana
2021-05-08 11:31:56 -07:00
parent e6260ae506
commit cb3ffc086c
5 changed files with 22 additions and 26 deletions
+3 -5
View File
@@ -1,4 +1,4 @@
const expect = require('expect');
const expect = require('expect');const { expect } = require('@jest/globals');
const helloWorld = require('./helloWorld');
// describe('Hello World', function() {
@@ -7,8 +7,6 @@ const helloWorld = require('./helloWorld');
// });
// });
describe('helloWorld', function() {
test('says "Hello, World!"', function() {
expect(helloWorld()).toBe("Hello, World!");
})
test('says "Hello, World!"', () => {
expect(helloWorld()).toBe("Hello, World!");
});