Responses for exercises in Exercism.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
599 B

import { decodedValue } from './resistor-color-duo'
describe('Resistor Colors', () => {
test('Brown and black', () => {
expect(decodedValue(['brown', 'black'])).toEqual(10)
})
test('Blue and grey', () => {
expect(decodedValue(['blue', 'grey'])).toEqual(68)
})
test('Yellow and violet', () => {
expect(decodedValue(['yellow', 'violet'])).toEqual(47)
})
test('Orange and orange', () => {
expect(decodedValue(['orange', 'orange'])).toEqual(33)
})
test('Ignore additional colors', () => {
expect(decodedValue(['green', 'brown', 'orange'])).toEqual(51)
})
})