angular-cn/modules/di/test/di/key_spec.js
2014-10-07 10:34:07 -04:00

14 lines
432 B
JavaScript

import {describe, it, expect} from 'test_lib/test_lib';
import {Key} from 'di/di';
export function main() {
describe("key", function () {
it('should be equal to another key if type is the same', function () {
expect(Key.get('car')).toBe(Key.get('car'));
});
it('should not be equal to another key if types are different', function () {
expect(Key.get('car')).not.toBe(Key.get('porsche'));
});
});
}