Sha256: e43f288842ae53c190148fa23b57a6bbadecfdc204556f251bfca150a5f52319
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
// Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/core.js'); var data = require('../../../lib/assets/javascripts/twitter_cldr/ru.js'); describe("DateTimeFormatter", function() { var formatter; beforeEach(function() { TwitterCldr.set_data(data); formatter = new TwitterCldr.DateTimeFormatter(); }); describe("#format", function() { it("correctly formats Russian additional formats", function() { var date = new Date(2012, 1, 1); expect(formatter.format(date, {format: "additional", type: "GyMMMd"})).toEqual("1 февр. 2012 г. н. э."); }); }); });
Version data entries
4 entries across 4 versions & 1 rubygems