Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactor test
  • Loading branch information
wooorm committed Oct 21, 2014
1 parent 3655ff4 commit ddd8a0d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test.js
@@ -1,17 +1,14 @@
'use strict';

/**
* Dependencies.
*/

var stemmer,
content,
visit,
Retext,
assert,
retext,
otherWords,
otherStems;

/**
* Module dependencies.
*/
assert;

stemmer = require('./');
Retext = require('retext');
Expand All @@ -23,15 +20,20 @@ assert = require('assert');
* Retext.
*/

var retext;

retext = new Retext()
.use(visit)
.use(content)
.use(stemmer);

/**
* Constants.
* Fixtures.
*/

var otherWords,
otherStems;

otherWords = ['An', 'easy', 'normal', 'paragraph'];
otherStems = ['an', 'easi', 'normal', 'paragraph'];

Expand Down

0 comments on commit ddd8a0d

Please sign in to comment.