Skip to content

Commit

Permalink
minor changes in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mir-SA committed Dec 20, 2024
1 parent ac2b348 commit 3936837
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions app/components/login.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { AUTH } from '../constants/urls';
import { service } from '@ember/service';

export default class LoginComponent extends Component {
@service router;
@service fastboot;
@service login;
@tracked authURL = this.generateAuthURL();

AUTH_URL = this.generateAuthURL();

Expand Down
2 changes: 1 addition & 1 deletion tests/constants/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const APPS = {
TASKS: 'https://my.realdevsquad.com/tasks',
IDENTITY: 'https://my.realdevsquad.com/identity',
MY_STATUS: 'https://my.realdevsquad.com',
API_BACKEND: 'https://staging-api.realdevsquad.com',
STAGING_API_BACKEND: 'https://staging-api.realdevsquad.com',
};

export const ABOUT = {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/components/login-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ module('Integration | Component | login', function (hooks) {
.exists()
.hasAttribute(
'href',
`${APPS.API_BACKEND}/auth/github/login?redirectURL=${window.location.href}`,
`${APPS.STAGING_API_BACKEND}/auth/github/login?redirectURL=${window.location.href}`,
);
assert
.dom('[data-test-login=google]')
.exists()
.hasAttribute(
'href',
`${APPS.API_BACKEND}/auth/google/login?dev=true&redirectURL=${window.location.href}`,
`${APPS.STAGING_API_BACKEND}/auth/google/login?dev=true&redirectURL=${window.location.href}`,
);
});
});

0 comments on commit 3936837

Please sign in to comment.