<commit_before>Admin = require('../src/portals/admin').Admin

describe 'Admin', ->
   response = null
   request = null
   sut = null
   rNr = null

   beforeEach ->
      spyOn console, 'log'
      rNr =
         create   : jasmine.createSpy 'rNr.create'
         retrieve : jasmine.createSpy 'rNr.retrieve'
         update   : jasmine.createSpy 'rNr.update'
         delete   : jasmine.createSpy 'rNr.delete'
         gather   : jasmine.createSpy 'rNr.gather'
      sut = new Admin(rNr)

      request =
         url: '/'
         method : 'POST'
         headers : {}
      response =
         writeHead : jasmine.createSpy()
         write : jasmine.createSpy()
         end : jasmine.createSpy()

   describe 'urlValid', ->
      it 'should accept the root url', ->
         url = '/'

         result = sut.urlValid url

         expect(result).toBeTruthy()
<commit_msg>added faling test to see if Travis CI correctly picks up the failure<commit_after>Admin = require('../src/portals/admin').Admin

describe 'Admin', ->
   response = null
   request = null
   sut = null
   rNr = null

   beforeEach ->
      spyOn console, 'log'
      rNr =
         create   : jasmine.createSpy 'rNr.create'
         retrieve : jasmine.createSpy 'rNr.retrieve'
         update   : jasmine.createSpy 'rNr.update'
         delete   : jasmine.createSpy 'rNr.delete'
         gather   : jasmine.createSpy 'rNr.gather'
      sut = new Admin(rNr)

      request =
         url: '/'
         method : 'POST'
         headers : {}
      response =
         writeHead : jasmine.createSpy()
         write : jasmine.createSpy()
         end : jasmine.createSpy()

   describe 'urlValid', ->
      it 'should fail', ->
         expect(true).toBe false

      it 'should accept the root url', ->
         url = '/'

         result = sut.urlValid url

         expect(result).toBeTruthy()

{'fraction_non_alphanumeric': 0.11349036402569593, 'fraction_numerical': 0.0, 'mean_word_length': 1.8534351145038168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '1840453', 'n_tokens_mistral': 621, 'n_tokens_neox': 595, 'n_words': 137}