UNPKG

chanjet-plugin-alert

Version:

在Mutants框架中,为chanjet平台提供读取短信的API

60 lines (36 loc) 1.08 kB
/** * Created by tonyjiang on 16/3/18. */ import 'should' import chai from 'chai' import sinon from 'sinon' import AlertPluginChanjet from '../src/chanjet/AlertPluginChanjet' import PluginTestUtil from 'chanjet-plugin-base/dist/PluginTestUtil'; global.mutants = { env : { os : 'android', constant : { os : { ios : 'ios', android : 'android' } } } }; let assert = chai.assert; const pluginName = 'AlertPlugin'; const methodName = { read : 'read', send : 'send' }; const instance = new AlertPluginChanjet(); const testUtil = new PluginTestUtil(); testUtil.init(cordova); describe('AlertPluginChanjet 单元测试' , () => { /*describe("继承" , () => { it("AlertPluginChanjet 应该实现 AlertPlugin.read方法" , () => { let instance = new AlertPluginChanjet(); assert(AlertPluginChanjet.prototype.hasOwnProperty('read') && (typeof AlertPluginChanjet.prototype.read).toLowerCase() == 'function'); }); });*/ });