Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix small typo #13044

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/ngResource/resourceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe("resource", function() {
});


it('should ignore slashes of undefinend parameters', function() {
it('should ignore slashes of undefined parameters', function() {
var R = $resource('/Path/:a/:b/:c');

$httpBackend.when('GET', '/Path').respond('{}');
Expand All @@ -181,7 +181,7 @@ describe("resource", function() {
R.get({a:6, b:7, c:8});
});

it('should not ignore leading slashes of undefinend parameters that have non-slash trailing sequence', function() {
it('should not ignore leading slashes of undefined parameters that have non-slash trailing sequence', function() {
var R = $resource('/Path/:a.foo/:b.bar/:c.baz');

$httpBackend.when('GET', '/Path/.foo/.bar.baz').respond('{}');
Expand Down Expand Up @@ -242,7 +242,7 @@ describe("resource", function() {
});

it('should not encode @ in url params', function() {
//encodeURIComponent is too agressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
//encodeURIComponent is too aggressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
//with regards to the character set (pchar) allowed in path segments
//so we need this test to make sure that we don't over-encode the params and break stuff like
//buzz api which uses @self
Expand Down