mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
13 lines
450 B
TypeScript
13 lines
450 B
TypeScript
import assert from 'node:assert/strict'
|
|
import test from 'node:test'
|
|
import { esimProfileActionForState } from '../src/components/deviceEsimProfileAction'
|
|
|
|
test('enabled profile uses the disable operation', () => {
|
|
assert.equal(esimProfileActionForState(1), 'disable')
|
|
})
|
|
|
|
test('non-enabled profile uses the switch operation', () => {
|
|
assert.equal(esimProfileActionForState(0), 'switch')
|
|
assert.equal(esimProfileActionForState(2), 'switch')
|
|
})
|