"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoContextsWithoutMatchers = void 0;
const inspection_js_1 = require("../model/inspection.js");
class NoContextsWithoutMatchers extends inspection_js_1.ContextInspection {
    *inspect(context) {
        if (context.type !== 'context') {
            return;
        }
        if (context.matchers.length === 0) {
            yield {
                name: 'no-contexts-without-matchers',
                level: inspection_js_1.InspectionLevel.Error,
                message: `Context should have at least 1 matcher`,
            };
        }
    }
}
exports.NoContextsWithoutMatchers = NoContextsWithoutMatchers;
//# sourceMappingURL=no-contexts-without-matchers.js.map