This repository has been archived on 2021-05-23. You can view files and clone it, but cannot push or open issues or pull requests.
simpledash/bulma/node_modules/node-sass/test/useragent.js

16 lines
456 B
JavaScript
Raw Normal View History

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()));
});
});
});