| 123456789101112131415161718 |
- const _ = require('./utils')
- test('wx.getSystemInfo', async () => {
- wx.getSystemInfo({
- success(res) {
- expect(res.errMsg).toBe('getSystemInfo:ok')
- },
- complete(res) {
- expect(res.errMsg).toBe('getSystemInfo:ok')
- },
- })
- })
- test('wx.getSystemInfoSync', async () => {
- const info = wx.getSystemInfoSync()
- expect(info.SDKVersion).toBe('2.4.1')
- expect(info.version).toBe('6.6.3')
- })
|