LimePot
76722fec47
Going to slowly work on a Bulma site, which will end up being the main site. Currently under the /BETA/ folder so Alpha site will still be main site.
15 lines
456 B
JavaScript
15 lines
456 B
JavaScript
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()));
|
|
});
|
|
});
|
|
});
|