summaryrefslogtreecommitdiff
path: root/node_modules/ua-parser/js/test/helpers.js
blob: 4d9204e36b5c3c70e9f2ebdc665112acdbe491d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var assert = require('assert'),
    helpers = require('../lib/helpers');

suite('Helpers', function() {
  test('startsWithDigit', function() {
    assert.ok(helpers.startsWithDigit('0'));
    assert.ok(helpers.startsWithDigit('1'));
    assert.ok(helpers.startsWithDigit('0a'));
    assert.ok(!helpers.startsWithDigit('a'));
  });
});