11const path = require ( 'path' ) ;
22const fs = require ( 'fs' ) ;
3- const mkdirp = require ( 'mkdirp' ) ;
43const temp = require ( 'temp' ) . track ( ) ;
54
65describe ( "Snippet Loading" , ( ) => {
@@ -127,7 +126,7 @@ describe("Snippet Loading", () => {
127126
128127 describe ( "when ~/.atom/snippets.json exists" , ( ) => {
129128 beforeEach ( ( ) => {
130- mkdirp . sync ( configDirPath ) ;
129+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
131130 fs . writeFileSync ( path . join ( configDirPath , 'snippets.json' ) , `\
132131{
133132 ".foo": {
@@ -156,7 +155,7 @@ describe("Snippet Loading", () => {
156155
157156 describe ( "when that file changes" , ( ) => {
158157 it ( "reloads the snippets" , ( ) => {
159- mkdirp . sync ( configDirPath ) ;
158+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
160159 fs . writeFileSync ( path . join ( configDirPath , 'snippets.json' ) , `\
161160{
162161".foo": {
@@ -175,7 +174,7 @@ describe("Snippet Loading", () => {
175174 } ) ;
176175
177176 runs ( ( ) => {
178- mkdirp . sync ( configDirPath ) ;
177+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
179178 fs . writeFileSync ( path . join ( configDirPath , 'snippets.json' ) , "" ) ;
180179 } ) ;
181180
@@ -186,7 +185,7 @@ describe("Snippet Loading", () => {
186185
187186 describe ( "when ~/.atom/snippets.cson exists" , ( ) => {
188187 beforeEach ( ( ) => {
189- mkdirp . sync ( configDirPath ) ;
188+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
190189 fs . writeFileSync ( path . join ( configDirPath , 'snippets.cson' ) , `\
191190".foo":
192191 "foo snippet":
@@ -211,7 +210,7 @@ describe("Snippet Loading", () => {
211210
212211 describe ( "when that file changes" , ( ) => {
213212 it ( "reloads the snippets" , ( ) => {
214- mkdirp . sync ( configDirPath ) ;
213+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
215214 fs . writeFileSync ( path . join ( configDirPath , 'snippets.cson' ) , `\
216215".foo":
217216 "foo snippet":
@@ -226,7 +225,7 @@ describe("Snippet Loading", () => {
226225 } ) ;
227226
228227 runs ( ( ) => {
229- mkdirp . sync ( configDirPath ) ;
228+ fs . mkdirSync ( configDirPath , { recursive : true } ) ;
230229 fs . writeFileSync ( path . join ( configDirPath , 'snippets.cson' ) , "" ) ;
231230 } ) ;
232231
0 commit comments