Skip to content

Commit

Permalink
Merge be744de into dda5805
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed Sep 18, 2020
2 parents dda5805 + be744de commit 28ca6b3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 36 deletions.
6 changes: 0 additions & 6 deletions app/config/apiMapping.js
Expand Up @@ -152,12 +152,6 @@ var apiMapping = {
'controller': 'remote-project-manager',
'method': 'types/',
'httpMethod': 'GET'
},
scaffolding: {
'endpoint': '/channel',
'controller': 'remote-project-manager',
'method': 'scaffolding/:type/',
'httpMethod': 'GET'
}
},
Status: {
Expand Down
19 changes: 0 additions & 19 deletions app/repo/remoteProjectManagerRepo.js
Expand Up @@ -20,25 +20,6 @@ app.repo("RemoteProjectManagerRepo", function RemoteProjectManagerRepo($q, WsApi
});
};

this.getTypeScaffolding = function (type) {
return $q(function (resolve, reject) {
if (type !== undefined) {
WsApi.fetch(apiMapping.RemoteProjectManager.scaffolding, {
pathValues: {
type: type
}
}).then(function (res) {
var apiRes = angular.fromJson(res.body);
if (apiRes.meta.status === 'SUCCESS') {
resolve(apiRes.payload['ArrayList<Setting>']);
} else {
reject();
}
});
}
});
};

return this;

});
2 changes: 0 additions & 2 deletions tests/mock/repo/mockRemoteProjectManagerRepo.js
Expand Up @@ -30,7 +30,5 @@ angular.module("mock.remoteProjectManagerRepo", []).service("RemoteProjectManage
return payloadPromise($q.defer());
};

repo.getTypeScaffolding = function (type) {};

return repo;
});
10 changes: 1 addition & 9 deletions tests/unit/repo/remoteProjectManagerRepoTest.js
Expand Up @@ -36,8 +36,7 @@ describe("service: RemoteProjectManagerRepo", function () {

describe("Is the repo method", function () {
var methods = [
"getTypes",
"getTypeScaffolding"
"getTypes"
];

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

// TODO
});

it("getTypeScaffolding work as expected", function () {
var response = repo.getTypeScaffolding();
$scope.$digest();

// TODO
});
});

});

0 comments on commit 28ca6b3

Please sign in to comment.