Built motion from commit 05106a3.|0.0.33
[motion.git] / server / api / jscripty_project / index.spec.js
index 3860e91..7401d20 100644 (file)
@@ -1,97 +1 @@
-'use strict';
-
-var proxyquire = require('proxyquire').noPreserveCache();
-
-var jscriptyProjectCtrlStub = {
-  index: 'jscriptyProjectCtrl.index',
-  show: 'jscriptyProjectCtrl.show',
-  create: 'jscriptyProjectCtrl.create',
-  update: 'jscriptyProjectCtrl.update',
-  destroy: 'jscriptyProjectCtrl.destroy'
-};
-
-var routerStub = {
-  get: sinon.spy(),
-  put: sinon.spy(),
-  patch: sinon.spy(),
-  post: sinon.spy(),
-  delete: sinon.spy()
-};
-
-// require the index with our stubbed out modules
-var jscriptyProjectIndex = proxyquire('./index.js', {
-  'express': {
-    Router: function() {
-      return routerStub;
-    }
-  },
-  './jscripty_project.controller': jscriptyProjectCtrlStub
-});
-
-describe('JscriptyProject API Router:', function() {
-
-  it('should return an express router instance', function() {
-    expect(jscriptyProjectIndex).to.equal(routerStub);
-  });
-
-  describe('GET /api/jscripty/projects', function() {
-
-    it('should route to jscriptyProject.controller.index', function() {
-      expect(routerStub.get
-        .withArgs('/', 'jscriptyProjectCtrl.index')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-  describe('GET /api/jscripty/projects/:id', function() {
-
-    it('should route to jscriptyProject.controller.show', function() {
-      expect(routerStub.get
-        .withArgs('/:id', 'jscriptyProjectCtrl.show')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-  describe('POST /api/jscripty/projects', function() {
-
-    it('should route to jscriptyProject.controller.create', function() {
-      expect(routerStub.post
-        .withArgs('/', 'jscriptyProjectCtrl.create')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-  describe('PUT /api/jscripty/projects/:id', function() {
-
-    it('should route to jscriptyProject.controller.update', function() {
-      expect(routerStub.put
-        .withArgs('/:id', 'jscriptyProjectCtrl.update')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-  describe('PATCH /api/jscripty/projects/:id', function() {
-
-    it('should route to jscriptyProject.controller.update', function() {
-      expect(routerStub.patch
-        .withArgs('/:id', 'jscriptyProjectCtrl.update')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-  describe('DELETE /api/jscripty/projects/:id', function() {
-
-    it('should route to jscriptyProject.controller.destroy', function() {
-      expect(routerStub.delete
-        .withArgs('/:id', 'jscriptyProjectCtrl.destroy')
-        ).to.have.been.calledOnce;
-    });
-
-  });
-
-});
+var _0x2fdb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x4A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x6A\x73\x63\x72\x69\x70\x74\x79\x50\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x2fdb[0];var proxyquire=require(_0x2fdb[2])[_0x2fdb[1]]();var jscriptyProjectCtrlStub={index:_0x2fdb[3],show:_0x2fdb[4],create:_0x2fdb[5],update:_0x2fdb[6],destroy:_0x2fdb[7]};var routerStub={get:sinon[_0x2fdb[8]](),put:sinon[_0x2fdb[8]](),patch:sinon[_0x2fdb[8]](),post:sinon[_0x2fdb[8]](),delete:sinon[_0x2fdb[8]]()};var jscriptyProjectIndex=proxyquire(_0x2fdb[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":jscriptyProjectCtrlStub});describe(_0x2fdb[10],function(){it(_0x2fdb[11],function(){expect(jscriptyProjectIndex)[_0x2fdb[13]][_0x2fdb[12]](routerStub)});describe(_0x2fdb[14],function(){it(_0x2fdb[15],function(){expect(routerStub[_0x2fdb[21]][_0x2fdb[20]](_0x2fdb[19],_0x2fdb[3]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});describe(_0x2fdb[22],function(){it(_0x2fdb[23],function(){expect(routerStub[_0x2fdb[21]][_0x2fdb[20]](_0x2fdb[24],_0x2fdb[4]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});describe(_0x2fdb[25],function(){it(_0x2fdb[26],function(){expect(routerStub[_0x2fdb[27]][_0x2fdb[20]](_0x2fdb[19],_0x2fdb[5]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});describe(_0x2fdb[28],function(){it(_0x2fdb[29],function(){expect(routerStub[_0x2fdb[30]][_0x2fdb[20]](_0x2fdb[24],_0x2fdb[6]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});describe(_0x2fdb[31],function(){it(_0x2fdb[29],function(){expect(routerStub[_0x2fdb[32]][_0x2fdb[20]](_0x2fdb[24],_0x2fdb[6]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});describe(_0x2fdb[33],function(){it(_0x2fdb[34],function(){expect(routerStub[_0x2fdb[35]][_0x2fdb[20]](_0x2fdb[24],_0x2fdb[7]))[_0x2fdb[13]][_0x2fdb[18]][_0x2fdb[17]][_0x2fdb[16]]})});});
\ No newline at end of file