[spec] more specs

This commit is contained in:
Ryan Willoughby
2013-05-29 17:08:48 -07:00
parent 666387e132
commit fceafa235a
+11
View File
@@ -38,4 +38,15 @@ describe('Plugin object (window.plugins)', function () {
expect(window.plugins.barcodeScanner.encode).toBeDefined();
expect(typeof window.plugins.barcodeScanner.encode == 'function').toBe(true);
});
it("should contain three DestinationType constants", function() {
expect(BarcodeScanner.Encode.TEXT_TYPE).toBe("TEXT_TYPE");
expect(BarcodeScanner.Encode.EMAIL_TYPE).toBe("EMAIL_TYPE");
expect(BarcodeScanner.Encode.PHONE_TYPE).toBe("PHONE_TYPE");
expect(BarcodeScanner.Encode.SMS_TYPE).toBe("SMS_TYPE");
});
it("should call scan successfully", function() {
window.plugins.barcodeScanner.scan(function() {}, function() {});
});
});