-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2112 from alixander/import-duplicate
d2ir: fix importing scopes
- Loading branch information
Showing
14 changed files
with
1,149 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,30 @@ if i'm right: { | |
a <- b: fix | ||
} | ||
if i'm wrong: { | ||
a <- b: nah, intended | ||
}`) | ||
err := runTestMain(t, ctx, dir, env, "index.d2") | ||
assert.Success(t, err) | ||
|
||
assert.TestdataDir(t, filepath.Join(dir, "index")) | ||
}, | ||
}, | ||
{ | ||
name: "sequence-spread-layer", | ||
run: func(t *testing.T, ctx context.Context, dir string, env *xos.Env) { | ||
writeFile(t, dir, "index.d2", `k; layers: { seq: {[email protected]} }`) | ||
writeFile(t, dir, "seq.d2", `shape: sequence_diagram | ||
a: me | ||
b: github.com/terrastruct/d2 | ||
a -> b: issue about a bug | ||
a."some note about the bug" | ||
if i'm right: { | ||
a <- b: fix | ||
} | ||
if i'm wrong: { | ||
a <- b: nah, intended | ||
}`) | ||
|
Binary file modified
BIN
-1 Byte
(100%)
e2etests-cli/testdata/TestCLI_E2E/pptx-theme-overrides.exp.pptx
Binary file not shown.
95 changes: 95 additions & 0 deletions
95
e2etests-cli/testdata/TestCLI_E2E/sequence-spread-layer/index.exp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.