Skip to content

Commit

Permalink
initial websocket implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kajgm committed Jun 1, 2024
1 parent 8218b52 commit 184bf96
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 146 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/example.cy.ts → cypress/e2e/Ticker.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe('Page navigation', () => {
it('visits the app root url', () => {
cy.visit('/')
cy.contains('h1', 'Stock Tracker')
})
})
cy.visit('/');
cy.get('[data-cy="ticker"]').contains('(Coinbase)');
});
});
33 changes: 25 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"format": "prettier --write src/"
},
"dependencies": {
"axios": "^1.7.2",
"vue": "^3.4.21"
},
"devDependencies": {
Expand Down
41 changes: 0 additions & 41 deletions src/components/HelloWorld.vue

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/__tests__/HelloWorld.spec.ts

This file was deleted.

10 changes: 10 additions & 0 deletions src/components/__tests__/Ticker.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest';
import { mount } from '@vue/test-utils';
import Ticker from '@/views/Ticker.vue';

describe('HelloWorld', () => {
it('renders properly', () => {
const wrapper = mount(Ticker);
expect(wrapper.text()).toContain('(Coinbase)');
});
});
28 changes: 0 additions & 28 deletions src/views/Chart.vue

This file was deleted.

28 changes: 0 additions & 28 deletions src/views/Grid.vue

This file was deleted.

Loading

0 comments on commit 184bf96

Please sign in to comment.