|
1 | | -const {ftoc, ctof} = require('./tempConversion') |
| 1 | +const {convertToCelsius, convertToFahrenheit} = require('./tempConversion') |
2 | 2 |
|
3 | | -describe('ftoc', () => { |
| 3 | +describe('convertToCelsius', () => { |
4 | 4 | test('works', () => { |
5 | | - expect(ftoc(32)).toEqual(0); |
| 5 | + expect(convertToCelsius(32)).toEqual(0); |
6 | 6 | }); |
7 | | - test.skip('rounds to 1 decimal', () => { |
8 | | - expect(ftoc(100)).toEqual(37.8); |
| 7 | + test('rounds to 1 decimal', () => { |
| 8 | + expect(convertToCelsius(100)).toEqual(37.8); |
9 | 9 | }); |
10 | | - test.skip('works with negatives', () => { |
11 | | - expect(ftoc(-100)).toEqual(-73.3); |
| 10 | + test('works with negatives', () => { |
| 11 | + expect(convertToCelsius(-100)).toEqual(-73.3); |
12 | 12 | }); |
13 | 13 | }); |
14 | 14 |
|
15 | | -describe('ctof', () => { |
16 | | - test.skip('works', () => { |
17 | | - expect(ctof(0)).toEqual(32); |
| 15 | +describe('convertToFahrenheit', () => { |
| 16 | + test('works', () => { |
| 17 | + expect(convertToFahrenheit(0)).toEqual(32); |
18 | 18 | }); |
19 | | - test.skip('rounds to 1 decimal', () => { |
20 | | - expect(ctof(73.2)).toEqual(163.8); |
| 19 | + test('rounds to 1 decimal', () => { |
| 20 | + expect(convertToFahrenheit(73.2)).toEqual(163.8); |
21 | 21 | }); |
22 | | - test.skip('works with negatives', () => { |
23 | | - expect(ctof(-10)).toEqual(14); |
| 22 | + test('works with negatives', () => { |
| 23 | + expect(convertToFahrenheit(-10)).toEqual(14); |
24 | 24 | }); |
25 | 25 | }); |
0 commit comments