       })
 
     it 'appends the current date to the slug if the slug exists in the database already but the date is invalid', (done) ->
-      todays_date = moment().format('MM-DD-YY')
       Save.sanitizeAndSave( =>
         Save.generateSlugs {
           thumbnail_title: 'Clockwork'

{ ObjectId } = require 'mongojs'

describe 'Save', ->

  before (done) ->
    app.use '/__gravity', gravity
    @server = app.listen 5000, ->
      done()

  after ->
    @server.close()

  beforeEach (done) ->
    @removeStopWords = Save.__get__ 'removeStopWords'

      })

    it 'appends unix timestamp for current date to the slug if the slug exists already and it is a draft and there is no publish date', (done) ->
      Save.sanitizeAndSave( =>
        Save.generateSlugs {
          thumbnail_title: 'Clockwork'
          published: false
          author: name: 'Molly'
        }, (err, article) =>
          article.slugs[0].should.equal 'molly-clockwork-1546318800'
          done()
      )(null, {
        slugs: ['molly-clockwork']
