mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
14 lines
567 B
JavaScript
14 lines
567 B
JavaScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
import { satelliteVisualsVisible } from './satellites.js';
|
|
|
|
test('restoring Satellite presentation preferences cannot show a disabled layer', () => {
|
|
assert.equal(satelliteVisualsVisible(false, true), false);
|
|
assert.equal(satelliteVisualsVisible(false, false), false);
|
|
});
|
|
|
|
test('enabled Satellite layers honor their point and orbit presentation preferences', () => {
|
|
assert.equal(satelliteVisualsVisible(true, true), true);
|
|
assert.equal(satelliteVisualsVisible(true, false), false);
|
|
});
|