shim.js 394 B

123456789101112131415
  1. // Partially taken from:
  2. // https://github.com/paulmillr/es6-shim/blob/master/test/string.js
  3. 'use strict';
  4. module.exports = function (t, a) {
  5. var callSite = [];
  6. callSite.raw = ["The total is ", " ($", " with tax)"];
  7. a(t(callSite, '{total}', '{total * 1.01}'),
  8. 'The total is {total} (${total * 1.01} with tax)');
  9. callSite.raw = [];
  10. a(t(callSite, '{total}', '{total * 1.01}'), '');
  11. };