• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CenterForOpenScience / ember-osf-web / 15845298096

24 Jun 2025 08:25AM UTC coverage: 67.346%. First build
15845298096

Pull #2593

github

web-flow
Merge 702bd57c9 into aea44b7a9
Pull Request #2593: [ENG-8255][ENG-8244] Show target item name for ConfiguredLinkAddons when deleting the addon; CSS fix for mobile

3255 of 5311 branches covered (61.29%)

Branch coverage included in aggregate %.

5 of 8 new or added lines in 1 file covered. (62.5%)

8505 of 12151 relevant lines covered (69.99%)

185.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.29
/app/helpers/instance-of.ts
1
import { getOwner } from '@ember/application';
2
import { assert } from '@ember/debug';
3

4
import Helper from '@ember/component/helper';
5

6
export default class InstanceOf extends Helper {
7
    compute([object, className]: [any, string]) {
8
        if (!object || typeof className !== 'string') {
1!
NEW
9
            return false;
×
10
        }
11
        // Look up the class from the container
12
        const owner = getOwner(this);
1✔
13
        const klass = owner.factoryFor(`model:${className}`)?.class;
1✔
14
        if (!klass) {
1!
NEW
15
            assert(`Class "${className}" not found`);
×
NEW
16
            return false;
×
17
        }
18
        return object instanceof klass;
1✔
19
    }
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc