Skip to content

Commit

Permalink
add a tests for circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Apr 27, 2021
1 parent a737464 commit 584bf8a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference types="cypress" />

import { a } from './a'

it('handles circular dependencies', () => {
expect(a()).to.eq('This is the message')
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { b } from './b'

export function a () {
const msg = b()

return msg
}

export const message = 'This is the message'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { c } from './c'

export function b () {
return c()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { message } from './a'

export function c () {
return message
}

0 comments on commit 584bf8a

Please sign in to comment.