Skip to content

Commit

Permalink
added start of media tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Mar 15, 2012
1 parent a3ef763 commit 85378cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test.media.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe("media", function () {
describe("MediaError object + error codes", function () {
var MediaError = require('cordova/plugin/MediaError');
it("should have no problem instantiating a MediaError object with the zero code", function () {
var err = new MediaError(0);
expect(err.code).toBe(0);
});
});
});

0 comments on commit 85378cc

Please sign in to comment.