 { resetConfig } = require './test-helper'
+path = require 'path'
 
 PJVProvider = require '../lib/package-json-validator-provider'
 

    it 'should not lint other.json files', ->

      waitsForPromise ->
        atom.workspace.open('./files/other.json')
          .then (editor) -> PJVProvider.lint(editor)
          .then (messages) ->

            expect(messages.length).toEqual(0)



    it 'should lint package.json files', ->

      waitsForPromise ->
        atom.workspace.open(path.join(__dirname, 'files', 'package.json'))
          .then (editor) -> PJVProvider.lint(editor)
          .then (messages) ->

            console.log(messages)
            expect(messages.length).toNotEqual(0)
