зеркало из https://github.com/github/docs.git
12 строки
366 B
JavaScript
12 строки
366 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
const gitignorePath = path.join(process.cwd(), '.gitignore')
|
|
const gitignore = fs.readFileSync(gitignorePath, 'utf8')
|
|
const entries = gitignore.split(/\r?\n/)
|
|
|
|
describe('.gitignore file', () => {
|
|
test('includes an entry for .env', () => {
|
|
expect(entries.some(entry => entry === '.env')).toBe(true)
|
|
})
|
|
})
|