@apollo-elements/fast
Version:
👩🚀🌛 FastElements for Apollo GraphQL 🚀👨🚀
20 lines (17 loc) • 481 B
JavaScript
import { __decorate } from "tslib";
import { expect } from '@open-wc/testing';
import { hosted } from './decorators';
describe('[FAST] @hosted', function () {
it('throws if misused', function () {
expect(() => {
class A {
constructor() {
this.a = 'a';
}
}
__decorate([hosted()], A.prototype, "a", void 0);
A;
}).to.throw('a not described; call @controlled first');
});
});
//# sourceMappingURL=decorators.test.js.map