Support adding students to a cohort via the instructor dashboard.

TNL-163
This commit is contained in:
Andy Armstrong
2014-09-10 14:05:04 -04:00
committed by cahrens
parent 13882b7544
commit 8627fdef32
67 changed files with 2155 additions and 931 deletions

View File

@@ -0,0 +1,15 @@
describe('interpolate_ntext', function () {
it('replaces placeholder values', function () {
expect(interpolate_ntext('contains {count} student', 'contains {count} students', 1, {count: 1})).
toBe('contains 1 student');
expect(interpolate_ntext('contains {count} student', 'contains {count} students', 5, {count: 2})).
toBe('contains 2 students');
});
});
describe('interpolate_text', function () {
it('replaces placeholder values', function () {
expect(interpolate_text('contains {adjective} students', {adjective: 'awesome'})).
toBe('contains awesome students');
});
});