This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

20
node_modules/@pnpm/network.ca-file/ca-file.spec.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import path from 'path'
import { readCAFileSync } from './ca-file';
it('should read CA file', () => {
expect(readCAFileSync(path.join(__dirname, 'fixtures/ca-file1.txt'))).toStrictEqual([
`-----BEGIN CERTIFICATE-----
XXXX
-----END CERTIFICATE-----`,
`-----BEGIN CERTIFICATE-----
YYYY
-----END CERTIFICATE-----`,
`-----BEGIN CERTIFICATE-----
ZZZZ
-----END CERTIFICATE-----`,
]);
});
it('should not fail when the file does not exist', () => {
expect(readCAFileSync(path.join(__dirname, 'not-exists.txt'))).toEqual(undefined)
})