Sha256: e473d689d4ef527597f55b3fc03dc070a524566139dc89b7fdc95ee8dc501b2e
Contents?: true
Size: 601 Bytes
Versions: 61
Compression:
Stored size: 601 Bytes
Contents
var I18n = require("../../app/assets/javascripts/i18n"); describe("Placeholder", function(){ beforeEach(function(){ I18n.reset(); }); it("matches {{name}}", function(){ expect("{{name}}").toMatch(I18n.placeholder); }); it("matches %{name}", function(){ expect("%{name}").toMatch(I18n.placeholder); }); it("returns placeholders", function(){ var translation = "I like %{javascript}. I also like %{ruby}" , matches = translation.match(I18n.placeholder); ; expect(matches[0]).toEqual("%{javascript}"); expect(matches[1]).toEqual("%{ruby}"); }); });
Version data entries
61 entries across 61 versions & 3 rubygems