forked from Blendman974/faceclaw
Don't show the Compass app on hardware (ie G1s) that can't support it
This commit is contained in:
1 parent
38c52ebc31
commit
0cc263c5d2
16 files changed
+202
-49
No files matched your search
@@ -98,3 +98,14 @@ test('a RayNeo iO always takes the R1 directly, leaving the G2\'s ring connectio
|
||||
api.glassesTypeSetting.set('g2');
|
||||
assert.equal(api.effectiveRingConnectionMode(), 'health');
|
||||
});
|
||||
|
||||
test('only a G2 has a compass', () => {
|
||||
const api = settingsFixture();
|
||||
assert.equal(api.glassesHaveCompass(), true);
|
||||
api.glassesTypeSetting.set('g1');
|
||||
assert.equal(api.glassesHaveCompass(), false);
|
||||
api.glassesTypeSetting.set('rayneo-io');
|
||||
assert.equal(api.glassesHaveCompass(), false);
|
||||
api.glassesTypeSetting.set('g2');
|
||||
assert.equal(api.glassesHaveCompass(), true);
|
||||
});
|
||||
Reference in new issue
Block a user