gemini.suite('states', function() {
gemini.matrix({
background: ['transparent', 'colored'],
size: ['xs', 's', 'm']
}, function(values: {background: String, size: String}, suite) {
// This one will be called ${background.length * size.length} times
// It's like the usual callback for gemini.suite just with values
// `name` of each suite will be generated somehow automatically using values
// (e.g. `background-${background} size-${size}`)
…
// We should be free to put suite-calls into matrix-calls and vice versa
gemini.suite('disabled', …);
gemini.suite('enabled', …);
});
So I suggest to implement something like this:
instead of this:
API could be:
UPD: Possible realization: