Skip to content

Commit

Permalink
change port
Browse files Browse the repository at this point in the history
  • Loading branch information
six7 committed Nov 15, 2023
1 parent 8aec0eb commit 551fdeb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export default defineConfig({
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:61968',
baseUrl: 'http://localhost:5000',
},
})
26 changes: 13 additions & 13 deletions cypress/support/mockEnv.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const MockEnv = () => {
cy.intercept('GET', 'http://localhost:61968/six7/user', {
cy.intercept('GET', 'http://localhost:5000/six7/user', {
type: 'User',
id: 1000,
login: 'six7',
name: 'Jan',
email: '[email protected]',
}).as('getUser');

cy.intercept('GET', 'http://localhost:61968/six7/repos/122/figma-tokens/collaborators/six7/permission', {
cy.intercept('GET', 'http://localhost:5000/six7/repos/122/figma-tokens/collaborators/six7/permission', {
permission: 'admin',
role_name: 'admin'
}).as('getPermissions')

cy.intercept('GET', 'http://localhost:61968/six7/repos/122/figma-tokens/contents/tokens.json?ref=main', JSON.stringify({
cy.intercept('GET', 'http://localhost:5000/six7/repos/122/figma-tokens/contents/tokens.json?ref=main', JSON.stringify({
"global": {
"red": {
"type": "color",
Expand All @@ -36,7 +36,7 @@ const MockEnv = () => {
]
})).as('getContent');

cy.intercept('GET', 'http://localhost:61968/six7six7/repos/122/figma-tokens/branches?per_page=30', [
cy.intercept('GET', 'http://localhost:5000/six7six7/repos/122/figma-tokens/branches?per_page=30', [
{
name: 'main',
},
Expand All @@ -45,43 +45,43 @@ const MockEnv = () => {
},
]).as('getBranch');

cy.intercept('GET', 'http://localhost:61968/six7/repos/122/figma-tokens/git/ref/heads%2Fmain', {
cy.intercept('GET', 'http://localhost:5000/six7/repos/122/figma-tokens/git/ref/heads%2Fmain', {
object: {
sha: 'main-sha',
},
}).as('getMainRef');

cy.intercept('POST', 'http://localhost:61968/six7/repos/122/figma-tokens/git/refs', {
cy.intercept('POST', 'http://localhost:5000/six7/repos/122/figma-tokens/git/refs', {
ref: 'new-branch',
}).as('createRef');

cy.intercept('GET', 'http://localhost:61968/six7/repos/122/figma-tokens/contents/tokens.json?ref=new-branch', {}).as(
cy.intercept('GET', 'http://localhost:5000/six7/repos/122/figma-tokens/contents/tokens.json?ref=new-branch', {}).as(
'getContent'
);

cy.intercept('GET', 'http://localhost:61968/six7/repos/122/figma-tokens/git/ref/heads%2Fnew-branch', {
cy.intercept('GET', 'http://localhost:5000/six7/repos/122/figma-tokens/git/ref/heads%2Fnew-branch', {
object: {
sha: 'new-branch-sha',
},
}).as('getNewBranchRef');

cy.intercept('POST', 'http://localhost:61968/six7/repos/122/figma-tokens/git/blobs', {
cy.intercept('POST', 'http://localhost:5000/six7/repos/122/figma-tokens/git/blobs', {
content: {},
}).as('blob');

cy.intercept('POST', 'http://localhost:61968/six7/repos/122/figma-tokens/git/trees', {
cy.intercept('POST', 'http://localhost:5000/six7/repos/122/figma-tokens/git/trees', {
content: {},
}).as('trees');

cy.intercept('POST', 'http://localhost:61968/six7/repos/122/figma-tokens/git/commits', {
cy.intercept('POST', 'http://localhost:5000/six7/repos/122/figma-tokens/git/commits', {
content: {},
}).as('commit');

cy.intercept('PATCH', 'http://localhost:61968/six7/repos/122/figma-tokens/git/refs/heads%2Fnew-branch', {
cy.intercept('PATCH', 'http://localhost:5000/six7/repos/122/figma-tokens/git/refs/heads%2Fnew-branch', {
content: {},
}).as('newBranchPatch');

cy.intercept('PATCH', 'http://localhost:61968/six7/repos/122/figma-tokens/git/refs/heads%2Fmain', {
cy.intercept('PATCH', 'http://localhost:5000/six7/repos/122/figma-tokens/git/refs/heads%2Fmain', {
content: {},
}).as('mainPatch');
};
Expand Down

0 comments on commit 551fdeb

Please sign in to comment.