web-utils-super
Version:
前端函数库
17 lines (15 loc) • 574 B
JavaScript
describe('Device API:', function () {
const utils = window['web-utils-super']
describe('#getExplore()', function () {
it(`utils.getExplore() should return "Chrome"`, function () {
console.log(`Explore:${utils.getExplore()}`)
assert(/^Chrome:/.test(utils.getExplore()))
})
})
describe('#getOS()', function () {
it(`utils.getOS() should return "windows"`, function () {
console.log(`OS:${utils.getOS()}`)
assert(utils.getOS() === 'windows' || utils.getOS() === 'MacOSX' || utils.getOS() === 'linux')
})
})
})