<commit_before>var assert = require('assert');
var request = require('request');
var createApplication = require('./server-fixtures');

describe('REST API authentication', function() {
  var server;
  var app;
  var username = 'feathers';
  var password = '<PASSWORD>';
  var settings = {
    secret: 'feathers-rocks',
    jwtOptions: {
      expiresIn: 1 // Testing token expiration after 1 second.
    }
  };
  var token;

  before(function(done) {
    createApplication(settings, username, password, function(err, obj){
      app = obj.app;<commit_msg>Fix test description<commit_after>var assert = require('assert');
var request = require('request');
var createApplication = require('./server-fixtures');

describe('Test using an expired token', function() {
  var server;
  var app;
  var username = 'feathers';
  var password = '<PASSWORD>';
  var settings = {
    secret: 'feathers-rocks',
    jwtOptions: {
      expiresIn: 1 // Testing token expiration after 1 second.
    }
  };
  var token;

  before(function(done) {
    createApplication(settings, username, password, function(err, obj){
      app = obj.app;
{'fraction_non_alphanumeric': 0.13380909901873328, 'fraction_numerical': 0.003568242640499554, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7464101', 'n_tokens_mistral': 335, 'n_tokens_neox': 323, 'n_words': 95}