|
2 | 2 | /**
|
3 | 3 | * @author Jason Dobry <[email protected]>
|
4 | 4 | * @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> |
6 | 6 | * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
|
7 | 7 | * @license MIT <https://github.com/jmdobry/angular-data-mocks/blob/master/LICENSE>
|
8 | 8 | *
|
@@ -1211,7 +1211,7 @@ function DSProvider() {
|
1211 | 1211 | var def = DS.definitions[definition.name];
|
1212 | 1212 |
|
1213 | 1213 | // 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); |
1215 | 1215 | eval('function ' + def.class + '() {}');
|
1216 | 1216 | def[def.class] = eval(def.class);
|
1217 | 1217 |
|
@@ -1275,7 +1275,7 @@ module.exports = DSProvider;
|
1275 | 1275 | * @description
|
1276 | 1276 | * Fake angular-data implementation suitable for unit testing angular applications that use the `angular-data.DS` module.
|
1277 | 1277 | *
|
1278 |
| - * __Version:__ 0.5.3 |
| 1278 | + * __Version:__ 0.5.4 |
1279 | 1279 | *
|
1280 | 1280 | * __angular-data-mocks requires SinonJS to be loaded in order to work.__
|
1281 | 1281 | *
|
@@ -1460,7 +1460,7 @@ module.exports = DSProvider;
|
1460 | 1460 | 'angular-data.DSHttpAdapterMock',
|
1461 | 1461 | 'angular-data.DSLocalStorageAdapterMock'
|
1462 | 1462 | ])
|
1463 |
| - .value('version', '0.5.3'); |
| 1463 | + .value('version', '0.5.4'); |
1464 | 1464 |
|
1465 | 1465 | })(window, window.angular);
|
1466 | 1466 |
|
|
0 commit comments