Commit 40f1f258 authored by John Crepezzi's avatar John Crepezzi
Browse files

Update some es6

parent e4e025f6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4,15 +4,15 @@ const assert = require('assert');

const Generator = require('../../lib/key_generators/random');

describe('RandomKeyGenerator', function() {
  describe('randomKey', function() {
    it('should return a key of the proper length', function() {
      var gen = new Generator();
describe('RandomKeyGenerator', () => {
  describe('randomKey', () => {
    it('should return a key of the proper length', () => {
      const gen = new Generator();
      assert.equal(6, gen.createKey(6).length);
    });

    it('should use a key from the given keyset if given', () => {
      var gen = new Generator({keyspace: 'A'});
      const gen = new Generator({keyspace: 'A'});
      assert.equal('AAAAAA', gen.createKey(6));
    });
  });