MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / dontSeeInThisFile

Method dontSeeInThisFile

lib/helper/FileSystem.js:149–152  ·  view source on GitHub ↗

* Checks that file found by `seeFile` doesn't include text. * @param {string} text * @param {string} [encoding='utf8']

(text, encoding = 'utf8')

Source from the content-addressed store, hash-verified

147 * @param {string} [encoding='utf8']
148 */
149 dontSeeInThisFile(text, encoding = 'utf8') {
150 const content = getFileContents(this.file, encoding)
151 fileIncludes(this.file).negate(text, content)
152 }
153
154 /**
155 * Checks that contents of file found by `seeFile` equal to text.

Callers 1

FileSystem_test.jsFile · 0.80

Calls 3

fileIncludesFunction · 0.90
getFileContentsFunction · 0.85
negateMethod · 0.80

Tested by

no test coverage detected