Sha256: 80b9f5ea7f2e5826e2ab830c85419b60806f308f338ed6a2b7638860998baa61

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

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

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

describe("SymbolTable", function() {
  beforeEach(function() {
    table = new TwitterCldr.SymbolTable ({"a":"b", "c":"d"});
  });
  describe("#fetch", function() {
    it("should be able to retrieve values for symbols", function() {
      expect(table.fetch("a")).toEqual("b");
      expect(table.fetch("z")).not.toBeDefined();
    });
    it("should be able to add then fetch new values for symbols", function() {
      table.add("e", "f");
      expect(table.fetch("e")).toEqual("f");
    });
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 spec/js/parsers/symbol_table.spec.js