///<reference path='../node_modules/immutable/dist/immutable.d.ts'/>
///<reference path="../typings/jasmine/jasmine.d.ts" />

import nishe = require('nishe');
import Immutable = require('immutable');

describe('Partition', () => {
  describe('domain', () => {
    it('matches constructor', () => {
      var p = new nishe.Partition(Immutable.Map({'a': 'a'}));
      expect(p.domain().toArray()).toEqual(['a']);
    });
    it('throws if not a partition', () => {
      expect(() => {
        new nishe.Partition(Immutable.Map({'a': 'b'}));
      }).toThrowError('The value b is not a key');
    });
  });
});

///<reference path='../node_modules/immutable/dist/immutable.d.ts'/>
///<reference path='../typings/jasmine/jasmine.d.ts'/>

import nishe = require('nishe');
import Immutable = require('immutable');

describe('Partition', () => {
  describe('domain', () => {
    it('matches constructor', () => {
      let p = new nishe.Partition(Immutable.Map({'a': 'a'}));
      expect(p.domain().toArray()).toEqual(['a']);
    });
    it('throws if not a partition', () => {
      expect(() => {
        new nishe.Partition(Immutable.Map({'a': 'b'}));
      }).toThrowError('The value b is not a key');
    });
  });
});

Use let instead of var in the test
Use let instead of var in the test
