mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-03 06:09:45 +02:00
test: await on expect().resolves/rejects
This commit is contained in:
@@ -130,8 +130,8 @@ describe('pie', () => {
|
||||
expect(sections.get('bat')).toBe(40);
|
||||
});
|
||||
|
||||
it('should handle simple pie with negative decimal', () => {
|
||||
expect(async () => {
|
||||
it('should handle simple pie with negative decimal', async () => {
|
||||
await expect(async () => {
|
||||
await parser.parse(`pie
|
||||
"ash" : -60.67
|
||||
"bat" : 40.12
|
||||
|
@@ -2063,8 +2063,8 @@ participant Alice`;
|
||||
});
|
||||
});
|
||||
|
||||
it.each(['__proto__', 'constructor'])('should allow %s as an actor name', function (prop) {
|
||||
expect(
|
||||
it.each(['__proto__', 'constructor'])('should allow %s as an actor name', async function (prop) {
|
||||
await expect(
|
||||
mermaidAPI.parse(`
|
||||
sequenceDiagram
|
||||
${prop}-->>A: Hello, how are you?`)
|
||||
|
Reference in New Issue
Block a user