Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.143.215.114
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
node-sass /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
fixtures
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
scripts
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
.eslintrc
37
B
-rw-r--r--
2016-09-13 10:22
api.js
62.92
KB
-rw-r--r--
2018-08-09 12:53
binding.js
3.33
KB
-rw-r--r--
2018-08-09 12:53
cli.js
24.96
KB
-rw-r--r--
2018-08-09 12:53
downloadoptions.js
1.67
KB
-rw-r--r--
2018-07-08 11:24
errors.js
1.51
KB
-rw-r--r--
2016-09-13 10:22
lowlevel.js
6.18
KB
-rw-r--r--
2018-08-09 12:53
runtime.js
5.89
KB
-rw-r--r--
2018-08-09 12:53
spec.js
6.44
KB
-rw-r--r--
2018-08-09 12:53
types.js
18.88
KB
-rw-r--r--
2018-03-13 10:53
useragent.js
449
B
-rw-r--r--
2016-11-17 10:39
watcher.js
17.04
KB
-rw-r--r--
2018-08-09 12:53
Save
Rename
process.env.NODESASS_COV ? require('../lib-cov') : require('../lib'); var assert = require('assert'), sass = require('../lib/extensions'), binding = require(sass.getBinaryPath()); describe('lowlevel', function() { it('fail with options not an object', function(done) { var options = 2; assert.throws(function() { binding.renderSync(options); }, /"result" element is not an object/); done(); }); it('data context with options.data not provided', function(done) { var options = { /* data: */ sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderSync(options); assert(/Data context created without a source string/.test(options.result.error), 'Should fail with error message "Data context created without a source string"'); done(); }); it('data context with both options.data and options.file not provided', function(done) { var options = { /* data: */ sourceComments: false, /* file: null, */ outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderSync(options); assert(/Data context created without a source string/.test(options.result.error), 'Should fail with error message "Data context created without a source string"'); done(); }); it('file context with both options.data and options.file not provided', function(done) { var options = { /* data: */ sourceComments: false, /* file: null, */ outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderFileSync(options); assert(/File context created without an input path/.test(options.result.error), 'Should fail with error message "File context created without an input path"'); done(); }); it('file context with options.file not provided, options.data given', function(done) { var options = { data: 'div { width: 10px; } ', sourceComments: false, /* file: null, */ outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderFileSync(options); assert(/File context created without an input path/.test(options.result.error), 'Should fail with error message "File context created without an input path"'); done(); }); it('fail with options.result not provided', function(done) { var options = { data: 'div { width: 10px; } ', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n' }; assert.throws(function() { binding.renderSync(options); }, /"result" element is not an object/); done(); }); it('fail with options.result not an object', function(done) { var options = { data: 'div { width: 10px; } ', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: 2 }; assert.throws(function() { binding.renderSync(options); }, /"result" element is not an object/); done(); }); it('fail with options.result.stats not provided', function(done) { var options = { data: 'div { width: 10px; } ', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: {} }; assert.throws(function() { binding.renderSync(options); }, /"result.stats" element is not an object/); done(); }); it('fail with options.result.stats not an object', function(done) { var options = { data: 'div { width: 10px; } ', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, indentWidth: 2, indentType: 0, linefeed: '\n', result: { stats: 2 } }; assert.throws(function() { binding.renderSync(options); }, /"result.stats" element is not an object/); done(); }); it('options.indentWidth not provided', function(done) { var options = { data: 'div { width: 10px; }', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, /* indentWidth */ indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderSync(options); assert(options.result.css); done(); }); it('empty data string', function(done) { var options = { data: '', sourceComments: false, file: null, outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, /* indentWidth */ indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderSync(options); assert(/empty source string/.test(options.result.error), 'Should fail with error message "Data context created with empty source string"'); done(); }); it('empty file string', function(done) { var options = { sourceComments: false, file: '', outFile: null, includePaths: '', precision: 5, sourceMap: null, style: 0, /* indentWidth */ indentType: 0, linefeed: '\n', result: { stats: {} } }; binding.renderFileSync(options); assert(/empty input path/.test(options.result.error), 'Should fail with error message "File context created with empty input path"'); done(); }); }); // lowlevel