UNPKG

@yoroi/banxa

Version:

The Banxa integration package of Yoroi SDK

16 lines 543 B
import { banxaIsTheme } from './theme'; describe('banxaIsTheme', () => { it('should return true for valid theme', () => { const validTheme = ['dark', 'light']; validTheme.forEach(theme => { expect(banxaIsTheme(theme)).toBe(true); }); }); it('should return false for invalid theme', () => { const invalidTheme = ['darks', 'lights', 'white', 'black', '', undefined, null, 123]; invalidTheme.forEach(theme => { expect(banxaIsTheme(theme)).toBe(false); }); }); }); //# sourceMappingURL=theme.test.js.map