How to use the @inkline/inkline/src/helpers/query.querySelectorAll function in @inkline/inkline

To help you get started, we’ve selected a few @inkline/inkline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if $options.$extends.name matches given name', () => {
            expect(querySelectorAll(items, '2')).toEqual([items[2]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if componentInstance.$children[0] matches given name', () => {
            expect(querySelectorAll(items, '7')).toEqual([items[7].componentInstance.$children[0]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if $options.name matches given name', () => {
            expect(querySelectorAll(items, '1')).toEqual([items[1]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if children[0] matches given name', () => {
            expect(querySelectorAll(items, '5')).toEqual([items[5].children[0]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if $children[0] matches given name', () => {
            expect(querySelectorAll(items, '6')).toEqual([items[6].$children[0]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing undefined if item below given search depth', () => {
            expect(querySelectorAll(items, '8', 2)).toEqual([]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return empty array if no items in array', () => {
            expect(querySelectorAll([])).toEqual([])
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return empty array if items is undefined', () => {
            expect(querySelectorAll(undefined)).toEqual([])
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if componentInstance.$options.name matches given name', () => {
            expect(querySelectorAll(items, '3')).toEqual([items[3]]);
        });
github inkline / inkline / tests / unit / helpers / query.spec.js View on Github external
it('should return array containing item if componentInstance.$options.$extends.name matches given name', () => {
            expect(querySelectorAll(items, '4')).toEqual([items[4]]);
        });