Skip to content

Commit a9fec88

Browse files
committed
Fixed creation of resoruce class.
1 parent 7f4bba7 commit a9fec88

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

bower.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jason Dobry",
33
"name": "angular-data-mocks",
44
"description": "A mock of angular-data for testing purposes.",
5-
"version": "0.5.3",
5+
"version": "0.5.4",
66
"homepage": "https://github.com/jmdobry/angular-data-mocks/",
77
"repository": {
88
"type": "git",
@@ -23,8 +23,11 @@
2323
"karma.start.js"
2424
],
2525
"devDependencies": {
26-
"angular": "~1.2.20",
27-
"angular-mocks": "~1.2.20",
28-
"angular-data": "~0.10.2"
26+
"angular": "1.2.20",
27+
"angular-mocks": "1.2.20",
28+
"angular-data": "0.10.3"
29+
},
30+
"resolutions": {
31+
"angular": "1.2.20"
2932
}
3033
}

dist/angular-data-mocks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* @author Jason Dobry <[email protected]>
44
* @file angular-data-mocks.js
5-
* @version 0.5.3 - Homepage <https://github.com/jmdobry/angular-data-mocks>
5+
* @version 0.5.4 - Homepage <https://github.com/jmdobry/angular-data-mocks>
66
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
77
* @license MIT <https://github.com/jmdobry/angular-data-mocks/blob/master/LICENSE>
88
*
@@ -1211,7 +1211,7 @@ function DSProvider() {
12111211
var def = DS.definitions[definition.name];
12121212

12131213
// Create the wrapper class for the new resource
1214-
def.class = definition.name[0].toUpperCase() + definition.name.substring(1);
1214+
def.class = DSUtils.pascalCase(definition.name);
12151215
eval('function ' + def.class + '() {}');
12161216
def[def.class] = eval(def.class);
12171217

@@ -1275,7 +1275,7 @@ module.exports = DSProvider;
12751275
* @description
12761276
* Fake angular-data implementation suitable for unit testing angular applications that use the `angular-data.DS` module.
12771277
*
1278-
* __Version:__ 0.5.3
1278+
* __Version:__ 0.5.4
12791279
*
12801280
* __angular-data-mocks requires SinonJS to be loaded in order to work.__
12811281
*
@@ -1460,7 +1460,7 @@ module.exports = DSProvider;
14601460
'angular-data.DSHttpAdapterMock',
14611461
'angular-data.DSLocalStorageAdapterMock'
14621462
])
1463-
.value('version', '0.5.3');
1463+
.value('version', '0.5.4');
14641464

14651465
})(window, window.angular);
14661466

0 commit comments

Comments
 (0)