Permalink
Browse files

Add tests

  • Loading branch information...
1 parent a45efb4 commit a3c899b61e56b5c03a70b6180ae28387925124b7 @Programmix Programmix committed Nov 20, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/interpolation.spec.js
@@ -161,7 +161,9 @@ describe('Interpolator', () => {
});
var tests = [
- {args: ['test $t(test)', function() { return 'success'; } ], expected: 'test success'}
+ {args: ['test $t(test)', function() { return 'success'; }], expected: 'test success'},
+ {args: ['$t(test, {"key": "success"})', function(key, opts) { return 'test ' + opts.key; }], expected: 'test success'},
+ {args: ['$t(test, {\'key\': \'success\'})', function(key, opts) { return 'test ' + opts.key }], expected: 'test success'}
];
tests.forEach((test) => {

0 comments on commit a3c899b

Please sign in to comment.