loopback/test
Miroslav Bajtoš ae7d99682b Simplify `app.defineMiddlewarePhases`
Refactor the implementation to use the new method `phaseList.zipMerge`.

This is commit is changing the behaviour in the case when
the first new phase does not exist in the current list.

Before the change, all new phases were added just before the "routes"
phase.

After this change, new phases are added to the head of the list,
until an existing phase is encountered, at which point the regular
merge algorithm kicks in.

Example:

    app.defineMiddlewarePhases(['first', 'routes', 'subapps']);

Before the change: code throws an error - 'routes' already exists.

After the change: phases are merged with the following result:

    'first', 'initial', ..., 'routes', 'subapps', ...
2014-11-12 08:59:56 +01:00
..
e2e Move replication implementation to DataModel 2014-05-06 13:31:23 -07:00
fixtures Make sure scoped methods are remoted 2014-08-08 15:55:47 -07:00
util Merge branch 'master' into 2.0 2014-07-16 09:09:07 -07:00
access-control.integration.js Pass in remotingContext for ACL 2014-08-07 22:19:27 -07:00
access-token.test.js middleware/token: store the token in current ctx 2014-11-11 11:04:41 +01:00
acl.test.js Skip static ACL entries that don't match the property 2014-10-13 16:45:36 -07:00
app.test.js Simplify `app.defineMiddlewarePhases` 2014-11-12 08:59:56 +01:00
change.test.js models/change: fix `id` property definition 2014-10-10 19:10:42 +02:00
checkpoint.test.js Auto-load and register built-in `Checkpoint` model 2014-10-14 08:58:16 +02:00
data-source.test.js Enhance the base model assertions 2014-07-22 10:57:42 -07:00
email.test.js added test and fixed changing passed in object within ctor 2014-08-14 15:44:36 -04:00
geo-point.test.js test/geo-point: relax too precise assertions 2014-05-16 16:24:18 +02:00
hidden-properties.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
integration.test.js Add test for request pausing during authentication 2014-03-18 08:43:24 +01:00
karma.conf.js test: run more tests in the browser 2014-10-14 08:58:17 +02:00
loopback.test.js Make sure loopback has all properties from express 2014-11-11 11:27:39 -08:00
memory.test.js Add memory docs and test 2013-07-16 13:39:03 -07:00
model.application.test.js Remove the generated flag as the id is set by the before hook 2014-03-17 10:01:29 -07:00
model.test.js PersistedModel: add remote method aliases 2014-09-10 17:35:02 +01:00
relations.integration.js Merge pull request #522 from clarkorz/feature/link-with-data 2014-09-11 16:59:27 -07:00
remote-connector.test.js lib/application: improve URL building algo 2014-10-20 13:47:24 +02:00
remoting-coercion.test.js Fix require 2014-09-06 10:55:16 +02:00
remoting.integration.js Merge branch 'master' into 2.0 2014-07-16 09:09:07 -07:00
replication.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
rest.middleware.test.js rest middleware: clean up context config 2014-11-05 09:13:45 +01:00
role.test.js Dismantle `lib/models`. 2014-10-13 12:09:27 +02:00
support.js !fixup RemoteConnector tests 2014-05-02 20:04:06 -07:00
user.test.js Merge pull request #616 from jpizarrom/master 2014-10-24 19:51:10 +02:00