forked from github/Toast-PhoneGap-Plugin
creating different failures
This commit is contained in:
parent
9def9e77f5
commit
95fe5ce19b
@ -1,11 +1,11 @@
|
|||||||
cordova.define("nl.x-services.plugins.toast.tests", function(require, exports, module) { exports.defineAutoTests = function() {
|
cordova.define("nl.x-services.plugins.toast.tests", function(require, exports, module) { exports.defineAutoTests = function() {
|
||||||
|
|
||||||
var fail = function (done) {
|
var fail = function (done) {
|
||||||
expect(true).toBe(false);
|
expect(false).toBe(true);
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
succeed = function (done) {
|
succeed = function (done) {
|
||||||
expect(true).toBe(true);
|
expect(false).toBe(false);
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ cordova.define("nl.x-services.plugins.toast.tests", function(require, exports, m
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should define showLongCenter", function() {
|
it("should define showLongCenter", function() {
|
||||||
expect(window.plugins.toast.IWillFail).toBeDefined();
|
expect(window.plugins.toast.showLongCenter).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should define showLongBottom", function() {
|
it("should define showLongBottom", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user