1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/node-sass/test/useragent.js

16 lines
449 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var assert = require('assert'),
pkg = require('../package.json'),
ua = require('../scripts/util/useragent');
describe('util', function() {
describe('useragent', function() {
it('should look as we expect', function() {
var reNode = 'node/' + process.version;
var reSass = 'node-sass-installer/' + pkg.version;
var reUA = new RegExp('^' + reNode + ' ' + reSass + '$');
assert.ok(reUA.test(ua()));
});
});
});