Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[spec] more specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed May 30, 2013
1 parent 666387e commit fceafa2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/barcodescanner.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {});
});
});

0 comments on commit fceafa2

Please sign in to comment.