add module alias '@tests/'
Alias would remove unnecessary repetitions and less relative paths make changes easier when moving around files. This commit cleans also up some relative paths ('../../../') by using the alias and orders imports. It updates both path alias in tsconfig and module alias in Vue CLI's bundler (vuejs/vue-cli#2398).
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { EventHandler, IEventSource, IEventSubscription } from '@/infrastructure/Events/IEventSource';
|
||||
import { EventSource } from '@/infrastructure/Events/EventSource';
|
||||
import { expect } from 'chai';
|
||||
import 'mocha';
|
||||
|
||||
describe('EventSource', () => {
|
||||
class ObserverMock {
|
||||
@@ -42,7 +42,6 @@ describe('EventSource', () => {
|
||||
expect(observer.onReceiveCalls).to.have.lengthOf(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('multiple observers', () => {
|
||||
// arrange
|
||||
let observers: ObserverMock[];
|
||||
|
||||
Reference in New Issue
Block a user