visreg-test
Version:
A visual regression testing solution that offers an easy setup with simple yet powerful customisation options, wrapped up in a convenient CLI runner to make assessing and accepting/rejecting diffs a breeze.
21 lines (20 loc) • 1.18 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const fetch_suite_config_1 = require("../../services/fetch-suite-config");
const express = require('express');
const router = express.Router();
router.post('/bust-suite-config-cache', (req, res) => __awaiter(void 0, void 0, void 0, function* () {
const { suiteSlug } = req.body;
const success = yield (0, fetch_suite_config_1.bustSuiteConfigCache)(suiteSlug);
res.send(success);
}));
exports.default = router;