2016-04-12 12:40:37 -04:00
|
|
|
import {
|
|
|
|
beforeEach,
|
|
|
|
ddescribe,
|
|
|
|
describe,
|
|
|
|
expect,
|
|
|
|
iit,
|
|
|
|
inject,
|
|
|
|
it,
|
|
|
|
xdescribe,
|
|
|
|
xit
|
2016-04-28 20:50:03 -04:00
|
|
|
} from '@angular/core/testing/testing_internal';
|
2016-03-14 14:45:14 -04:00
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
import {Message, id} from '@angular/compiler/src/i18n/message';
|
2016-03-14 14:45:14 -04:00
|
|
|
|
|
|
|
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));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|