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

Method dontSeeFileContentsEqual

lib/helper/FileSystem.js:183–186  ·  view source on GitHub ↗

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

(text, encoding = 'utf8')

Source from the content-addressed store, hash-verified

181 * @param {string} [encoding='utf8']
182 */
183 dontSeeFileContentsEqual(text, encoding = 'utf8') {
184 const content = getFileContents(this.file, encoding)
185 fileEquals(this.file).negate(text, content)
186 }
187
188 /**
189 * Returns file names in current directory.

Callers 1

FileSystem_test.jsFile · 0.80

Calls 3

fileEqualsFunction · 0.90
getFileContentsFunction · 0.85
negateMethod · 0.80

Tested by

no test coverage detected