From f26ef4f468f22dce96eda8ea1899cb1bf542d2a9 Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Thu, 1 Mar 2012 11:47:06 -0800 Subject: [PATCH] added start of camera tests. so far just making sure constants are defined on the camera plugin --- test/test.camera.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test.camera.js diff --git a/test/test.camera.js b/test/test.camera.js new file mode 100644 index 00000000..9d26c414 --- /dev/null +++ b/test/test.camera.js @@ -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]); + } + }); + }); +}); +