UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

14 lines 681 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.strictEqualsCheck = void 0; const checkEqualsString_1 = require("./composableActions/checkEqualsString"); const checkExists_1 = require("./composableActions/checkExists"); const withOptionalityCheck_1 = require("./withOptionalityCheck"); exports.strictEqualsCheck = (0, withOptionalityCheck_1.withOptionalityCheck)((foundContents, context) => { (0, checkExists_1.checkExists)(foundContents); (0, checkEqualsString_1.checkEqualsString)({ declaredContents: context.declaredFileContents, foundContents: foundContents, }); }); //# sourceMappingURL=strictEqualsCheck.js.map