Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit f4dc394

Browse files
committed
Remove beforeEach.withDefaultDataSource
1 parent 431a31b commit f4dc394

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

lib/helpers.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var helpers = exports = module.exports = {
66
it: _it,
77
beforeEach: _beforeEach
88
};
9-
var loopback = require('loopback');
109
var assert = require('assert');
1110
var request = require('supertest');
1211

@@ -21,15 +20,6 @@ _beforeEach.withApp = function(app) {
2120
});
2221
}
2322

24-
_beforeEach.withDefaultDataSource = function(dataSource) {
25-
beforeEach(function() {
26-
this.dataSource = dataSource;
27-
28-
// TODO(ritch) this should not be required
29-
loopback.AccessToken.attachTo(dataSource);
30-
});
31-
}
32-
3323
_describe.model = function describeModel(app, modelName, cb) {
3424
assert(app, 'describeModel called without app');
3525

test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ describe('helpers', function () {
99

1010
testApp.use(loopback.rest());
1111
helpers.beforeEach.withApp(testApp);
12-
helpers.beforeEach.withDefaultDataSource(loopback.memory());
1312

1413
describe('helpers.it', function() {
1514
['shouldBeAllowed',

0 commit comments

Comments
 (0)