Sha256: 59cd26e5b839371202a1efa7e442bc0a9b9d29be0d531c63855f03ea341e22a8

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 Bytes

Contents

// Copyright 2012 Twitter, Inc
// http://www.apache.org/licenses/LICENSE-2.0

var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/ru.js');

describe("TimespanFormatter", function() {
  beforeEach(function() {
    formatter = new TwitterCldr.TimespanFormatter();
  });

  describe("#format", function() {
    it("works for Russian", function() {
      var options = {direction: "none", approximate: true};
      expect(formatter.format(1, options)).toEqual("1 секунда");
      expect(formatter.format(2, options)).toEqual("2 секунды");
      expect(formatter.format(5, options)).toEqual("5 секунд");
      expect(formatter.format(23, options)).toEqual("23 секунды");
    });
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 spec/js/calendars/timespan.ru.spec.js