Skip to content

Commit

Permalink
Merge pull request mgonto#1201 from fahad19/fahad19-patch-1
Browse files Browse the repository at this point in the history
typo for `normalize`.
  • Loading branch information
ConcurrentHashMap committed Mar 24, 2016
2 parents 4df0719 + 93bcf08 commit 1913023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/restangularSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ describe("Restangular", function() {
});
});

describe("testing normilize url", function () {
describe("testing normalize url", function () {

it("should get a list of objects", function () {
Restangular.all('customers/').getList().then(function(res){
Expand Down Expand Up @@ -1119,12 +1119,12 @@ describe("Restangular", function() {
$httpBackend.flush();
});

it("should return a normilized URL even it has extra slashes", function() {
it("should return a normalized URL even it has extra slashes", function() {
var restangularSpaces = Restangular.one("accounts//", 123).one("buildings//", 456).all("spaces///");
expect(restangularSpaces.getRestangularUrl()).toEqual("/accounts/123/buildings/456/spaces/");
});

it("should create a new service and still working normilized URL", function() {
it("should create a new service and still working normalized URL", function() {
var newRes = Restangular.withConfig(function(RestangularConfigurer){
RestangularConfigurer.setBaseUrl('http://localhost:8080');
});
Expand Down

0 comments on commit 1913023

Please sign in to comment.