Lines Matching full:shouldbe
56 shouldBe('(new Derived).callBaseMethod()', 'baseMethodValue');
57 shouldBe('x = (new Derived).callBaseMethod; x()', 'baseMethodValue');
58 shouldBe('(new Derived).callBaseMethodInGetter', 'baseMethodValue');
59 shouldBe('(new Derived).callBaseMethodInSetter = 1; valueInSetter', 'baseMethodValue');
60 shouldBe('(new Derived).baseMethodInGetterSetter', '(new Base).baseMethod');
61 shouldBe('(new Derived).baseMethodInGetterSetter = 1; valueInSetter', '(new Base).baseMethod');
62 shouldBe('Derived.staticMethod()', '"base3"');
63 shouldBe('(new SecondDerived).chainMethod()', '["base", "derived", "secondDerived"]');
78 shouldBe('x = { }; new (class extends Base { constructor() { return x } });', 'x');
84 shouldBe('x = { }; new (class extends null { constructor() { return x } });', 'x');