/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
common/static/js/spec/string_utils_spec.js
15 строк
645 B
Syed Ali Abbas Zaidi
fix: eslint autofixable issues (#32181)
18 май 2023, 09:03
Не верифицирован
18 май 2023, 09:03
d7053a6
Код
Авторство
О чём код?
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'); }); });