Skip to content

Commit

Permalink
chore(snippets): fix snippet test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vegardok committed Oct 8, 2021
1 parent 5a3b4b1 commit d5914cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/extractCodeSnippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ codeSnippets.forEach((snippets, operationId) => {
}
const codeToTest = `
import { CogniteClient, SequenceValueType } from '${packageName}';
const client = new CogniteClient({ appId: '[APP NAME]' });
client.loginWithApiKey({
const client = new CogniteClient({
appId: '[APP NAME]',
project: '[PROJECT]',
apiKey: '[API_KEY]'
apiKeyMode: true,
getToken: () => Promise.resolve('[API_KEY]'),
});
(async () => {
${joinSnippets(snippets)}
Expand Down

0 comments on commit d5914cf

Please sign in to comment.