Skip to content

Commit

Permalink
added start of camera tests. so far just making sure constants are de…
Browse files Browse the repository at this point in the history
…fined on the camera plugin
  • Loading branch information
filmaj committed Mar 1, 2012
1 parent 2d93bb4 commit f26ef4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test.camera.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe("camera", function () {
var camera = require('cordova/plugin/Camera'),
constants = require('cordova/plugin/CameraConstants');

describe("constants", function() {
it("should be defined on the base camera plugin", function() {
for (var type in constants) {
expect(camera[type]).toBe(constants[type]);
}
});
});
});

0 comments on commit f26ef4f

Please sign in to comment.