Skip to content

Commit aeb6d9b

Browse files
committed
chore($urlMatcherFactory): clean up test defs
1 parent 1ebed37 commit aeb6d9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/urlMatcherFactorySpec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ describe("urlMatcherFactory", function () {
160160
});
161161

162162
describe("typed parameters", function() {
163-
it("should accept object definitions", function() {
163+
it("should accept object definitions", function () {
164164
var type = { encode: function() {}, decode: function() {} };
165165
$umf.type("myType", type);
166166
expect($umf.type("myType").encode).toBe(type.encode);
167167
});
168168

169-
it("should reject duplicate definitions", function() {
170-
$umf.type("myType", { encode: function() {}, decode: function() {} });
169+
it("should reject duplicate definitions", function () {
170+
$umf.type("myType", { encode: function () {}, decode: function () {} });
171171
expect(function() { $umf.type("myType", {}); }).toThrow("A type named 'myType' has already been defined.");
172172
});
173173

174-
it("should accept injected function definitions", inject(function($stateParams) {
174+
it("should accept injected function definitions", inject(function ($stateParams) {
175175
$umf.type("myType", function($stateParams) {
176176
return {
177177
decode: function() {
@@ -182,7 +182,7 @@ describe("urlMatcherFactory", function () {
182182
expect($umf.type("myType").decode()).toBe($stateParams);
183183
}));
184184

185-
it("should match built-in types", function() {
185+
it("should match built-in types", function () {
186186
var m = new UrlMatcher("/{foo:int}/{flag:bool}");
187187
expect(m.exec("/1138/1")).toEqual({ foo: 1138, flag: true });
188188
expect(m.format({ foo: 5, flag: true })).toBe("/5/1");

0 commit comments

Comments
 (0)