@@ -1892,7 +1892,7 @@ t.test('audit signatures', async t => {
1892
1892
const registry = new MockRegistry ( { tap : t , registry : npm . config . get ( 'registry' ) } )
1893
1893
await manifestWithValidAttestations ( { registry } )
1894
1894
const fixture = fs . readFileSync (
1895
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-sigstore-attestations.json') ,
1895
+ path . resolve ( __dirname , '../../ fixtures/ sigstore/valid-sigstore-attestations.json' ) ,
1896
1896
'utf8'
1897
1897
)
1898
1898
registry . nock . get ( '/-/npm/v1/attestations/[email protected] ' ) . reply ( 200 , fixture )
@@ -1918,11 +1918,11 @@ t.test('audit signatures', async t => {
1918
1918
await manifestWithValidAttestations ( { registry } )
1919
1919
await manifestWithMultipleValidAttestations ( { registry } )
1920
1920
const fixture1 = fs . readFileSync (
1921
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-sigstore-attestations.json') ,
1921
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-sigstore-attestations.json' ) ,
1922
1922
'utf8'
1923
1923
)
1924
1924
const fixture2 = fs . readFileSync (
1925
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-tuf-js-attestations.json') ,
1925
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-tuf-js-attestations.json' ) ,
1926
1926
'utf8'
1927
1927
)
1928
1928
registry . nock . get ( '/-/npm/v1/attestations/[email protected] ' ) . reply ( 200 , fixture1 )
@@ -1951,7 +1951,7 @@ t.test('audit signatures', async t => {
1951
1951
const registry = new MockRegistry ( { tap : t , registry : npm . config . get ( 'registry' ) } )
1952
1952
await manifestWithValidAttestations ( { registry } )
1953
1953
const fixture = fs . readFileSync (
1954
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-sigstore-attestations.json') ,
1954
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-sigstore-attestations.json' ) ,
1955
1955
'utf8'
1956
1956
)
1957
1957
registry . nock . get ( '/-/npm/v1/attestations/[email protected] ' ) . reply ( 200 , fixture )
@@ -1986,7 +1986,7 @@ t.test('audit signatures', async t => {
1986
1986
const registry = new MockRegistry ( { tap : t , registry : npm . config . get ( 'registry' ) } )
1987
1987
await manifestWithValidAttestations ( { registry } )
1988
1988
const fixture = fs . readFileSync (
1989
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-sigstore-attestations.json') ,
1989
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-sigstore-attestations.json' ) ,
1990
1990
'utf8'
1991
1991
)
1992
1992
registry . nock . get ( '/-/npm/v1/attestations/[email protected] ' ) . reply ( 200 , fixture )
@@ -2016,11 +2016,11 @@ t.test('audit signatures', async t => {
2016
2016
await manifestWithValidAttestations ( { registry } )
2017
2017
await manifestWithMultipleValidAttestations ( { registry } )
2018
2018
const fixture1 = fs . readFileSync (
2019
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-sigstore-attestations.json') ,
2019
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-sigstore-attestations.json' ) ,
2020
2020
'utf8'
2021
2021
)
2022
2022
const fixture2 = fs . readFileSync (
2023
- path . join ( __dirname , '..' , ' fixtures' , ' sigstore/valid-tuf-js-attestations.json') ,
2023
+ path . join ( __dirname , '../../ fixtures/ sigstore/valid-tuf-js-attestations.json' ) ,
2024
2024
'utf8'
2025
2025
)
2026
2026
registry . nock . get ( '/-/npm/v1/attestations/[email protected] ' ) . reply ( 200 , fixture1 )
0 commit comments