Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add platform 37 #30

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion lib/platform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ describe('platform.js', () => {
argon: ['argon', 'gen3', 'wifi', 'ble', 'udp', 'mesh', 'nrf52840'],
electron: ['electron', 'gen2', 'cellular', 'udp', 'stm32f2xx'],
p1: ['p1', 'gen2', 'wifi', 'tcp', 'stm32f2xx'],
photon: ['photon', 'gen2', 'wifi', 'tcp', 'stm32f2xx']
photon: ['photon', 'gen2', 'wifi', 'tcp', 'stm32f2xx'],
esomx: ['esomx', 'gen3', 'som', 'cellular', 'ble', 'udp', 'nrf52840'],
electron2: ['electron2', 'gen3', 'cellular', 'ble', 'udp', 'nrf52840']
};
it('provides all expected data for p2', () => {
const p2 = platformForName('p2');
Expand Down Expand Up @@ -98,5 +100,23 @@ describe('platform.js', () => {
const p = platformForName('photon');
expect(p.tags).to.include.members(expectedTags.photon);
});

it('provides all expected data for esomx', () => {
const esomx = platformForName('esomx');
expect(esomx).to.be.an.instanceOf(Platform);
expect(esomx.id).to.eql(15);
expect(esomx.name).to.eql('esomx');
expect(esomx.displayName).to.eql('E-SoM-X');
expect(esomx.tags.sort()).to.include.members(expectedTags.esomx.sort());
});

it('provides all expected data for electron2', () => {
const electron2 = platformForName('electron2');
expect(electron2).to.be.an.instanceOf(Platform);
expect(electron2.id).to.eql(37);
expect(electron2.name).to.eql('electron2');
expect(electron2.displayName).to.eql('Electron 2');
expect(electron2.tags.sort()).to.include.members(expectedTags.electron2.sort());
});
});
});
Loading
Loading