Skip to content

Commit 0a29947

Browse files
committed
Add test for get skill by id
1 parent 694e646 commit 0a29947

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/spec/utils_spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ describe('Utils', function () {
2828
Utils.parseDepends(all_skills.skills).toString().should.equal([{source: 1, target: 0}].toString())
2929
});
3030
});
31+
describe('Get Skill By id', function () {
32+
it('should return correct skill information by id', function () {
33+
Utils.getSkillById(all_skills.skills, 1).toString().should.equal({ id: 1, name: 'Web' }.toString())
34+
});
35+
});
3136
});

0 commit comments

Comments
 (0)