siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
48 lines (33 loc) • 1.29 kB
JavaScript
/*
Siesta 5.6.1
Copyright(c) 2009-2022 Bryntum AB
https://bryntum.com/contact
https://bryntum.com/products/siesta/license
*/
Class('Ariadne.QueryFinder.Identifier', {
does : Siesta.Util.Role.CanMergeArrayAttributeFromClassHierarchy,
has : {
finder : { required : true },
priority : 100
},
methods : {
/**
Should returns a single "segment" or an array of segments, or null
A segment:
- a string with query - will be assigned default weight of 1000
- an object:
{
query : String,
weight : Number, // optional, default is 1000
// indicates that segment should be the 1st one in the query component
leading : Boolean, // optional
// indicates that query component with this segment should be combined
// with previous one using '>'
child : Boolean
}
*/
identify : function (target, root, maze) {
return []
}
}
});