Datasets:

Modalities:
Text
Formats:
json
Languages:
code
Size:
< 1K
Tags:
code
Libraries:
Datasets
pandas
License:
File size: 657 Bytes
4fb7874
1
const { clean, override } = abuser(__filename);describe('lib/unadded', () => {	let unadded;	before(() => {		clean('.');		// BUG: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')		// override('async-execute', () => `remove '.gitattributes'		// FIXED:		override('../../helpers/spawn', () => `remove '.gitattributes'add 'apps/post/index.js'add 'new file.txt'`);		unadded = require('.');	});	after(() => clean('.'));	it('should convert dry-run add to a file list', async() => {		const list = await unadded();		expect(list).to.deep.equal([			'.gitattributes',			'apps/post/index.js',			'new file.txt',		]);	});});