1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/tests/content/gitignore.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

12 lines
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)
})
})