fix #59, divide numbers as it is

This commit is contained in:
Jun Yang
2018-05-12 22:58:43 +08:00
parent 220b705b73
commit 61f146432d
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -110,8 +110,8 @@ describe('filters', function () {
describe('divided_by', function () {
it('should return 2 for 4,2', () => test('{{4 | divided_by: 2}}', '2'))
it('should return 4 for 16,4', () => test('{{16 | divided_by: 4}}', '4'))
it('should return 1 for 5,3', () => test('{{5 | divided_by: 3}}', '1'))
it('should convert string to number', () => test('{{"5" | divided_by: "3"}}', '1'))
it('should return 1 for 5,3', () => test('{{5 | divided_by: 3}}', (5 / 3).toString()))
it('should convert string to number', () => test('{{"6" | divided_by: "3"}}', '2'))
})
describe('downcase', function () {