UNPKG

brasileirao

Version:

<p align="center"> <a href="https://github.com/godrix/brasileirao/actions"> <img src="https://img.shields.io/github/actions/workflow/status/godrix/brasileirao/publish.yml"/> </a> <a href="https://github.com/godrix/brasileirao"> <img src="htt

11 lines (10 loc) 360 B
import {calculateGoalDifference} from '../../utils' describe('calculateGoalDifference', () => { it('should return the difference between goals for and goals against', () => { const goalsFor = 10 const goalsAgainst = 5 const expected = 5 const result = calculateGoalDifference(goalsFor, goalsAgainst) expect(result).toBe(expected) }) })