Skip to content

Commit 6e30e3f

Browse files
authored
Merge pull request #84 from TAMULib/sprint7-83-cleanup_scaffolding
Issue 83: Cleanup ServiceType Scaffolding
2 parents dda5805 + be744de commit 6e30e3f

File tree

4 files changed

+1
-36
lines changed

4 files changed

+1
-36
lines changed

app/config/apiMapping.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ var apiMapping = {
152152
'controller': 'remote-project-manager',
153153
'method': 'types/',
154154
'httpMethod': 'GET'
155-
},
156-
scaffolding: {
157-
'endpoint': '/channel',
158-
'controller': 'remote-project-manager',
159-
'method': 'scaffolding/:type/',
160-
'httpMethod': 'GET'
161155
}
162156
},
163157
Status: {

app/repo/remoteProjectManagerRepo.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,6 @@ app.repo("RemoteProjectManagerRepo", function RemoteProjectManagerRepo($q, WsApi
2020
});
2121
};
2222

23-
this.getTypeScaffolding = function (type) {
24-
return $q(function (resolve, reject) {
25-
if (type !== undefined) {
26-
WsApi.fetch(apiMapping.RemoteProjectManager.scaffolding, {
27-
pathValues: {
28-
type: type
29-
}
30-
}).then(function (res) {
31-
var apiRes = angular.fromJson(res.body);
32-
if (apiRes.meta.status === 'SUCCESS') {
33-
resolve(apiRes.payload['ArrayList<Setting>']);
34-
} else {
35-
reject();
36-
}
37-
});
38-
}
39-
});
40-
};
41-
4223
return this;
4324

4425
});

tests/mock/repo/mockRemoteProjectManagerRepo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ angular.module("mock.remoteProjectManagerRepo", []).service("RemoteProjectManage
3030
return payloadPromise($q.defer());
3131
};
3232

33-
repo.getTypeScaffolding = function (type) {};
34-
3533
return repo;
3634
});

tests/unit/repo/remoteProjectManagerRepoTest.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ describe("service: RemoteProjectManagerRepo", function () {
3636

3737
describe("Is the repo method", function () {
3838
var methods = [
39-
"getTypes",
40-
"getTypeScaffolding"
39+
"getTypes"
4140
];
4241

4342
var repoMethodExists = function (key) {
@@ -59,13 +58,6 @@ describe("service: RemoteProjectManagerRepo", function () {
5958

6059
// TODO
6160
});
62-
63-
it("getTypeScaffolding work as expected", function () {
64-
var response = repo.getTypeScaffolding();
65-
$scope.$digest();
66-
67-
// TODO
68-
});
6961
});
7062

7163
});

0 commit comments

Comments
 (0)