2015-08-11 17:00:54 -04:00
|
|
|
import {ddescribe, describe, it, iit, expect} from 'angular2/test_lib';
|
2014-12-22 17:15:18 -05:00
|
|
|
import {IMPLEMENTS} from './fixtures/annotations';
|
|
|
|
|
2014-11-25 18:16:53 -05:00
|
|
|
class Interface1 {
|
|
|
|
one(){}
|
|
|
|
}
|
|
|
|
class Interface2 {
|
|
|
|
two(){}
|
|
|
|
}
|
2014-12-22 17:15:18 -05:00
|
|
|
|
|
|
|
@IMPLEMENTS(Interface1, Interface2)
|
2014-11-25 18:16:53 -05:00
|
|
|
class SomeClass {
|
|
|
|
one(){}
|
|
|
|
two(){}
|
|
|
|
}
|
2014-12-22 17:15:18 -05:00
|
|
|
|
|
|
|
export function main() {
|
|
|
|
describe('interfaces', function() {
|
2014-11-25 18:16:53 -05:00
|
|
|
it('should work', function () {
|
|
|
|
var s = new SomeClass();
|
|
|
|
expect(s).toImplement(Interface1);
|
|
|
|
expect(s).toImplement(Interface2);
|
|
|
|
});
|
2014-12-22 17:15:18 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
}
|