1 | var expect = require('chai').expect;
|
2 | var repeat = require('../');
|
3 |
|
4 | describe('repeat', function () {
|
5 | it('should repeat the given string n times', function () {
|
6 | var actual = repeat('foo', 10);
|
7 | var expected = 'foofoofoofoofoofoofoofoofoofoo';
|
8 | expect(actual).to.eql(expected);
|
9 | });
|
10 | });
|