Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/node-sass/test/ drwxr-xr-x |
Viewing file: Select action/file-type: var assert = require('assert'), path = require('path'), errors = require('../lib/errors'); describe('binary errors', function() { function getCurrentPlatform() { if (process.platform === 'win32') { return 'Windows'; } else if (process.platform === 'darwin') { return 'OS X'; } return ''; } function getCurrentArchitecture() { if (process.arch === 'x86' || process.arch === 'ia32') { return '32-bit'; } else if (process.arch === 'x64') { return '64-bit'; } return ''; } function getCurrentEnvironment() { return getCurrentPlatform() + ' ' + getCurrentArchitecture(); } describe('for an unsupported environment', function() { it('identifies the current environment', function() { var message = errors.unsupportedEnvironment(); assert.ok(message.indexOf(getCurrentEnvironment()) !== -1); }); it('links to supported environment documentation', function() { var message = errors.unsupportedEnvironment(); assert.ok(message.indexOf('https://github.com/sass/node-sass/releases/tag/v') !== -1); }); }); describe('for an missing binary', function() { it('identifies the current environment', function() { var message = errors.missingBinary(); assert.ok(message.indexOf(getCurrentEnvironment()) !== -1); }); it('documents the expected binary location', function() { var message = errors.missingBinary(); assert.ok(message.indexOf(path.sep + 'vendor' + path.sep) !== -1); }); }); }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |