Skip to content

Commit fd06f0a

Browse files
committed
Add failing test case with nested source command
1 parent b6ece7d commit fd06f0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/util/__tests__/sourcing.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ describe('getSourcedUris', () => {
2222
it('returns an empty set if no files were sourced', () => {
2323
const fileContent = ''
2424
const result = getSourcedUris({
25-
fileContent,
2625
fileUri,
2726
rootPath: null,
2827
tree: parser.parse(fileContent),
@@ -44,18 +43,20 @@ describe('getSourcedUris', () => {
4443
4544
# source ...
4645
47-
source "./issue206.sh" # quoted file in fixtures folder
48-
4946
source "$LIBPATH" # dynamic imports not supported
5047
5148
# conditional is currently not supported
5249
if [[ -z $__COMPLETION_LIB_LOADED ]]; then source "$LIBPATH" ; fi
5350
51+
. "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
52+
5453
show ()
5554
{
5655
about 'Shows SVN proxy settings'
5756
group 'proxy'
5857
58+
source "./issue206.sh" # quoted file in fixtures folder
59+
5960
echo "SVN Proxy Settings"
6061
echo "=================="
6162
python2 - <<END
@@ -74,7 +75,6 @@ describe('getSourcedUris', () => {
7475
`
7576

7677
const result = getSourcedUris({
77-
fileContent,
7878
fileUri,
7979
rootPath: null,
8080
tree: parser.parse(fileContent),

0 commit comments

Comments
 (0)