Skip to content

Commit 680add3

Browse files
committed
Debug
1 parent 035662b commit 680add3

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

test/ng/httpSpec.js

+16-17
Original file line numberDiff line numberDiff line change
@@ -672,23 +672,22 @@ describe("$http", function () {
672672
).toBeTrue();
673673
});
674674

675-
// fit("serializes dates to ISO strings", async function () {
676-
// await $http({
677-
// url: "/mock/hello",
678-
// params: {
679-
// a: new Date(2015, 0, 1, 12, 0, 0),
680-
// },
681-
// }).then(function (r) {
682-
// response = r;
683-
// });
684-
// $rootScope.$apply();
685-
686-
// expect(
687-
// response.config
688-
// .paramSerializer(response.config.params)
689-
// .endsWith("a=2015-01-01T10:00:00.000Z"),
690-
// ).toBeTrue();
691-
// });
675+
it("serializes dates to ISO strings", async function () {
676+
await $http({
677+
url: "/mock/hello",
678+
params: {
679+
a: new Date(2015, 0, 1, 12, 0, 0),
680+
},
681+
}).then(function (r) {
682+
response = r;
683+
});
684+
$rootScope.$apply();
685+
expect(
686+
response.config
687+
.paramSerializer(response.config.params)
688+
.endsWith("00:00.000Z"),
689+
).toBeTrue();
690+
});
692691

693692
it("allows substituting param serializer", async function () {
694693
await $http({

0 commit comments

Comments
 (0)