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

Method seeFileContentsEqual

lib/helper/FileSystem.js:159–162  ·  view source on GitHub ↗

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

(text, encoding = 'utf8')

Source from the content-addressed store, hash-verified

157 * @param {string} [encoding='utf8']
158 */
159 seeFileContentsEqual(text, encoding = 'utf8') {
160 const content = getFileContents(this.file, encoding)
161 fileEquals(this.file).assert(text, content)
162 }
163
164 /**
165 * Checks that contents of the file found by `seeFile` equal to contents of the file at `pathToReferenceFile`.

Callers 1

FileSystem_test.jsFile · 0.80

Calls 3

fileEqualsFunction · 0.90
getFileContentsFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected