-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests for xarc-render-context (#1671)
- Loading branch information
1 parent
e9ac516
commit aef1ebd
Showing
13 changed files
with
454 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,6 @@ | |
"dist" | ||
], | ||
"dependencies": { | ||
"munchy": "^1.0.7", | ||
"require-at": "^1.0.4", | ||
"xaa": "^1.5.0" | ||
}, | ||
|
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
7 changes: 7 additions & 0 deletions
7
packages/xarc-render-context/test/fixtures/custom-call-with-params.ts
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const prepare = modcall_param => { | ||
return { | ||
process(context) { | ||
return `load ${modcall_param} from ${context.folder} folder`; | ||
} | ||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const setup = () => { | ||
return { | ||
process() { | ||
return `hello from custom setup`; | ||
} | ||
}; | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/xarc-render-context/test/fixtures/token-module-null.ts
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = () => { | ||
return null; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
RenderContext, | ||
BaseOutput, | ||
MainOutput, | ||
SpotOutput, | ||
TEMPLATE_DIR, | ||
TOKEN_HANDLER | ||
} from "../../src/index"; | ||
import { expect } from "chai"; | ||
|
||
describe("index.tsc", function () { | ||
it("should export RenderContext, BaseOutput, MainOutput, SpotOutput etc ", function () { | ||
expect(RenderContext).to.exist; | ||
expect(BaseOutput).to.exist; | ||
expect(MainOutput).to.exist; | ||
expect(SpotOutput).to.exist; | ||
expect(TEMPLATE_DIR).to.exist; | ||
expect(TOKEN_HANDLER).to.exist; | ||
}); | ||
}); |
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
Oops, something went wrong.