@@ -117,34 +117,34 @@ describe('FileSystem', function () {
117
117
} )
118
118
} )
119
119
120
- describe ( 'fileExists ()' , function ( ) {
120
+ describe ( 'existsFile ()' , function ( ) {
121
121
it ( 'returns true for an existing file' , async function ( ) {
122
122
const filePath = await makeFile ( 'test.txt' )
123
- const existantFile = await fsCommon . fileExists ( filePath )
123
+ const existantFile = await fsCommon . existsFile ( filePath )
124
124
assert . strictEqual ( existantFile , true )
125
125
} )
126
126
127
127
it ( 'returns false for a non-existant file' , async function ( ) {
128
- const nonExistantFile = await fsCommon . fileExists ( createTestPath ( 'thisDoesNotExist.txt' ) )
128
+ const nonExistantFile = await fsCommon . existsFile ( createTestPath ( 'thisDoesNotExist.txt' ) )
129
129
assert . strictEqual ( nonExistantFile , false )
130
130
} )
131
131
132
132
it ( 'returns false when directory with same name exists' , async function ( ) {
133
133
const directoryPath = await makeFolder ( 'thisIsDirectory' )
134
- const existantFile = await fsCommon . fileExists ( directoryPath )
134
+ const existantFile = await fsCommon . existsFile ( directoryPath )
135
135
assert . strictEqual ( existantFile , false )
136
136
} )
137
137
} )
138
138
139
- describe ( 'directoryExists ()' , function ( ) {
139
+ describe ( 'existsDir ()' , function ( ) {
140
140
it ( 'returns true for an existing directory' , async function ( ) {
141
141
const dirPath = await makeFolder ( 'myDir' )
142
- const existantDirectory = await fsCommon . directoryExists ( dirPath )
142
+ const existantDirectory = await fsCommon . existsDir ( dirPath )
143
143
assert . strictEqual ( existantDirectory , true )
144
144
} )
145
145
146
146
it ( 'returns false for a non-existant directory' , async function ( ) {
147
- const nonExistantDirectory = await fsCommon . directoryExists ( createTestPath ( 'thisDirDoesNotExist' ) )
147
+ const nonExistantDirectory = await fsCommon . existsDir ( createTestPath ( 'thisDirDoesNotExist' ) )
148
148
assert . strictEqual ( nonExistantDirectory , false )
149
149
} )
150
150
} )
0 commit comments