UNPKG

particle-cli

Version:

Simple Node commandline application for working with your Particle devices and using the Particle Cloud

22 lines (17 loc) 564 B
'use strict'; const { expect } = require('../../test/setup'); const { knownAppNames, knownAppsForPlatform } = require('./known-apps'); describe('Known Apps', () => { describe('knownAppsNames', () => { it('returns all the known apps', () => { const apps = knownAppNames(); expect(apps.sort()).to.eql(['tinker', 'tinker-usb-debugging']); }); }); describe('knownAppsForPlatform', () => { it('returns the known apps for Photon', () => { const apps = knownAppsForPlatform('photon'); expect(Object.keys(apps)).to.eql(['tinker']); }); }); });