You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
456 B
15 lines
456 B
var assert = require('assert').strict, |
|
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())); |
|
}); |
|
}); |
|
});
|
|
|