2016-04-12 12:40:37 -04:00
|
|
|
import {
|
|
|
|
AsyncTestCompleter,
|
|
|
|
beforeEach,
|
|
|
|
ddescribe,
|
|
|
|
describe,
|
|
|
|
expect,
|
|
|
|
iit,
|
|
|
|
inject,
|
|
|
|
it,
|
|
|
|
xdescribe,
|
|
|
|
xit
|
|
|
|
} from 'angular2/testing_internal';
|
2016-03-14 14:45:14 -04:00
|
|
|
|
|
|
|
import {Message, id} from 'angular2/src/i18n/message';
|
|
|
|
|
|
|
|
export function main() {
|
2016-03-17 23:57:57 -04:00
|
|
|
describe('Message', () => {
|
2016-04-12 12:40:37 -04:00
|
|
|
describe("id", () => {
|
|
|
|
it("should return a different id for messages with and without the meaning", () => {
|
|
|
|
let m1 = new Message("content", "meaning", null);
|
|
|
|
let m2 = new Message("content", null, null);
|
2016-03-14 14:45:14 -04:00
|
|
|
expect(id(m1)).toEqual(id(m1));
|
|
|
|
expect(id(m1)).not.toEqual(id(m2));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|