From 86bb29b4d378314bd906248e08198c1952d2f0a4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 16 Sep 2024 17:12:15 +0100 Subject: Upgrade to bootstrap 5.3 --- pyblackbird_cc/static/scss/tests/sass-true/runner.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pyblackbird_cc/static/scss/tests/sass-true/runner.js (limited to 'pyblackbird_cc/static/scss/tests/sass-true/runner.js') diff --git a/pyblackbird_cc/static/scss/tests/sass-true/runner.js b/pyblackbird_cc/static/scss/tests/sass-true/runner.js new file mode 100644 index 0000000..bef870a --- /dev/null +++ b/pyblackbird_cc/static/scss/tests/sass-true/runner.js @@ -0,0 +1,17 @@ +'use strict' + +const fs = require('node:fs') +const path = require('node:path') +const { runSass } = require('sass-true') + +module.exports = (filename, { describe, it }) => { + const data = fs.readFileSync(filename, 'utf8') + const TRUE_SETUP = '$true-terminal-output: false; @import "true";' + const sassString = TRUE_SETUP + data + + runSass( + { describe, it, sourceType: 'string' }, + sassString, + { loadPaths: [path.dirname(filename)] } + ) +} -- cgit v1.2.3