UNPKG

@yoroi/banxa

Version:

The Banxa integration package of Yoroi SDK

29 lines (24 loc) 582 B
import {BanxaTheme, banxaIsTheme} from './theme' describe('banxaIsTheme', () => { it('should return true for valid theme', () => { const validTheme: BanxaTheme[] = ['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) }) }) })