Skip to content

Commit 72aa868

Browse files
committed
Getting my regex straight
1 parent f69ae10 commit 72aa868

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/integration/datastore/async_methods/destroyAll/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('DS.destroyAll(resourceName, params[, options]): ', function () {
5555
assert.isUndefined(DS.get('post', 8));
5656
assert.isUndefined(DS.get('post', 9));
5757

58-
$httpBackend.expectDELETE(/http:\/\/test\.angular-cache\.com\/posts?\?/).respond(200);
58+
$httpBackend.expectDELETE(/http:\/\/test\.angular-cache\.com\/posts\??/).respond(200);
5959

6060
DS.inject('post', p1);
6161
DS.inject('post', p2);

test/integration/datastore/async_methods/findAll/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('DS.findAll(resourceName, params[, options]): ', function () {
3030
});
3131
});
3232
it('should query the server for a collection', function () {
33-
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts?\?/).respond(200, [p1, p2, p3, p4]);
33+
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts\??/).respond(200, [p1, p2, p3, p4]);
3434

3535
DS.findAll('post', {}).then(function (data) {
3636
assert.deepEqual(data, [p1, p2, p3, p4]);
@@ -63,7 +63,7 @@ describe('DS.findAll(resourceName, params[, options]): ', function () {
6363
fail('Should not have rejected!');
6464
});
6565

66-
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts?\?/).respond(200, [p1, p2, p3, p4]);
66+
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts\??/).respond(200, [p1, p2, p3, p4]);
6767

6868
// Should make a request because bypassCache is set to true
6969
DS.findAll('post', {}, { bypassCache: true }).then(function (data) {
@@ -76,7 +76,7 @@ describe('DS.findAll(resourceName, params[, options]): ', function () {
7676
$httpBackend.flush();
7777
});
7878
it('should query the server for a collection but not store the data if cacheResponse is false', function () {
79-
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts?\?/).respond(200, [p1, p2, p3, p4]);
79+
$httpBackend.expectGET(/http:\/\/test\.angular-cache\.com\/posts\??/).respond(200, [p1, p2, p3, p4]);
8080

8181
DS.findAll('post', {}, { cacheResponse: false }).then(function (data) {
8282
assert.deepEqual(data, [p1, p2, p3, p4]);

0 commit comments

Comments
 (0)