Skip to content

Commit 59b8da1

Browse files
fix: deprecated platform order test
Arduino deprecated platforms should have more priority then other deprecated ones
1 parent 92f518d commit 59b8da1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: arduino-ide-extension/src/test/node/boards-service-impl.slow-test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ describe('boards-service-impl', () => {
113113
expect(result.length).greaterThan(1);
114114
const lastIndex = result.length - 1;
115115
const last = result[lastIndex];
116-
expect(last.id).to.be.equal('arduino:mbed');
116+
expect(last.id).to.be.equal('Microsoft:win10');
117117
expect(last.deprecated).to.be.true;
118-
const windowsIoTCoreIndex = result.findIndex(
119-
(platform) => platform.id === 'Microsoft:win10'
118+
const arduinoMbedCoreIndex = result.findIndex(
119+
(platform) => platform.id === 'arduino:mbed'
120120
);
121-
expect(windowsIoTCoreIndex).to.be.greaterThanOrEqual(0);
122-
expect(windowsIoTCoreIndex).to.be.lessThan(lastIndex);
121+
expect(arduinoMbedCoreIndex).to.be.greaterThanOrEqual(0);
122+
expect(arduinoMbedCoreIndex).to.be.lessThan(lastIndex);
123123
const first = result[0];
124124
expect(typeof first.deprecated).to.be.equal('boolean');
125125
expect(first.deprecated).to.be.false;

0 commit comments

Comments
 (0)