Chore/jest
This commit is contained in:
+11
-13
@@ -1,25 +1,23 @@
|
||||
import { expect } from 'chai'
|
||||
|
||||
import {getOrdinalSuffix } from '../components/helpers/home'
|
||||
import { getOrdinalSuffix } from '../components/helpers/home'
|
||||
|
||||
describe('Home helper: getOrdinalSuffix', () => {
|
||||
it('For 1, it returns suffix \'st\'', () => {
|
||||
expect(getOrdinalSuffix(1)).to.eql('st')
|
||||
test("For 1, it returns suffix 'st'", () => {
|
||||
expect(getOrdinalSuffix(1)).toEqual('st')
|
||||
})
|
||||
|
||||
it('For 2, it returns suffix \'nd\'', () => {
|
||||
expect(getOrdinalSuffix(2)).to.eql('nd')
|
||||
test("For 2, it returns suffix 'nd'", () => {
|
||||
expect(getOrdinalSuffix(2)).toEqual('nd')
|
||||
})
|
||||
|
||||
it('For 3, it returns suffix \'rd\'', () => {
|
||||
expect(getOrdinalSuffix(3)).to.eql('rd')
|
||||
test("For 3, it returns suffix 'rd'", () => {
|
||||
expect(getOrdinalSuffix(3)).toEqual('rd')
|
||||
})
|
||||
|
||||
it('For 11, it returns suffix \'th\'', () => {
|
||||
expect(getOrdinalSuffix(11)).to.eql('th')
|
||||
test("For 11, it returns suffix 'th'", () => {
|
||||
expect(getOrdinalSuffix(11)).toEqual('th')
|
||||
})
|
||||
|
||||
it('For 23, it returns suffix \'rd\'', () => {
|
||||
expect(getOrdinalSuffix(23)).to.eql('rd')
|
||||
test("For 23, it returns suffix 'rd'", () => {
|
||||
expect(getOrdinalSuffix(23)).toEqual('rd')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user