mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-15 09:20:31 +00:00
19 lines
373 B
CoffeeScript
19 lines
373 B
CoffeeScript
|
expect = require('chai').expect
|
||
|
device = require('./device')
|
||
|
|
||
|
describe 'Device:', ->
|
||
|
|
||
|
describe '#getDisplayName()', ->
|
||
|
|
||
|
it 'should return Raspberry Pi for that device', ->
|
||
|
displayName = 'Raspberry Pi'
|
||
|
|
||
|
possibleNames = [
|
||
|
'raspberry-pi'
|
||
|
'raspberrypi'
|
||
|
'rpi'
|
||
|
]
|
||
|
|
||
|
for name in possibleNames
|
||
|
expect(device.getDisplayName(name)).to.equal(displayName)
|