1- import { join , dirname } from 'node:path' ;
1+ import { dirname } from 'node:path' ;
22import { fileURLToPath } from 'node:url' ;
33import fs from 'node:fs' ;
44import test from 'supertape' ;
55import { getColumns , isDev } from './columns.mjs' ;
66
77const __filename = fileURLToPath ( import . meta. url ) ;
88const __dirname = dirname ( __filename ) ;
9- const distDir = join ( __dirname , '..' , 'dist-dev' ) ;
109
1110test ( 'columns: prod' , ( t ) => {
1211 const columns = getColumns ( {
@@ -22,7 +21,7 @@ test('columns: dev', (t) => {
2221 isDev : true ,
2322 } ) ;
2423
25- const css = fs . readFileSync ( `${ distDir } /columns/name-size-date.css` , 'utf8' ) ;
24+ const css = fs . readFileSync ( `${ __dirname } /../css /columns/name-size-date.css` , 'utf8' ) ;
2625
2726 t . match ( columns [ 'name-size-date' ] , css ) ;
2827 t . end ( ) ;
@@ -33,7 +32,7 @@ test('columns: no args', (t) => {
3332 isDev ( true ) ;
3433 const columns = getColumns ( ) ;
3534
36- const css = fs . readFileSync ( `${ distDir } /columns/name-size-date.css` , 'utf8' ) ;
35+ const css = fs . readFileSync ( `${ __dirname } /../css /columns/name-size-date.css` , 'utf8' ) ;
3736 isDev ( currentIsDev ) ;
3837
3938 t . match ( columns [ 'name-size-date' ] , css ) ;
0 commit comments