Skip to content

Commit 146b161

Browse files
chrmartiCopilot
andcommitted
Simplify bearer auth test setup
Use the literal HTTP authentication scheme instead of constructing it at runtime. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 87adb63 commit 146b161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/test/httpOCIRegistry.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('OCI registry authentication', () => {
154154
it('forwards a refresh token to an explicitly configured auth host', async () => {
155155
const token = 'registry-token';
156156
const refreshToken = 'registry-refresh-token';
157-
const bearerScheme = ['Bear', 'er'].join('');
157+
const bearerScheme = 'Bearer';
158158
let tokenRequests = 0;
159159
const tokenServer = http.createServer(async (request, response) => {
160160
tokenRequests++;

0 commit comments

Comments
 (0)