diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
commit | eeaddb27560d723ca7d61359744ceb2709fccd2d (patch) | |
tree | 04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /pyblackbird_cc/static/scss/tests/sass-true | |
parent | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff) |
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'pyblackbird_cc/static/scss/tests/sass-true')
-rw-r--r-- | pyblackbird_cc/static/scss/tests/sass-true/register.js | 14 | ||||
-rw-r--r-- | pyblackbird_cc/static/scss/tests/sass-true/runner.js | 17 |
2 files changed, 0 insertions, 31 deletions
diff --git a/pyblackbird_cc/static/scss/tests/sass-true/register.js b/pyblackbird_cc/static/scss/tests/sass-true/register.js deleted file mode 100644 index d93e414..0000000 --- a/pyblackbird_cc/static/scss/tests/sass-true/register.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict' - -const path = require('node:path') - -const runnerPath = path.join(__dirname, 'runner').replace(/\\/g, '/') - -require.extensions['.scss'] = (module, filename) => { - const normalizedFilename = filename.replace(/\\/g, '/') - - return module._compile(` - const runner = require('${runnerPath}') - runner('${normalizedFilename}', { describe, it }) - `, filename) -} diff --git a/pyblackbird_cc/static/scss/tests/sass-true/runner.js b/pyblackbird_cc/static/scss/tests/sass-true/runner.js deleted file mode 100644 index bef870a..0000000 --- a/pyblackbird_cc/static/scss/tests/sass-true/runner.js +++ /dev/null @@ -1,17 +0,0 @@ -'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)] } - ) -} |