-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kilian Schulte
committed
Dec 30, 2024
1 parent
d50f290
commit 7c60e97
Showing
10 changed files
with
59 additions
and
18 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
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
File renamed without changes.
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,28 @@ | ||
@TestOn('vm') | ||
|
||
import 'package:jaspr/server.dart'; | ||
import 'package:jaspr_test/server_test.dart'; | ||
|
||
void main() { | ||
group('render test', () { | ||
setUpAll(() { | ||
Jaspr.initializeApp(useIsolates: false); | ||
}); | ||
|
||
test('renders component with document', () async { | ||
var result = await renderComponent(div(id: 'test', [])); | ||
|
||
expect( | ||
result, | ||
equals('<!DOCTYPE html>\n' | ||
'<html><head><base href="/"/></head><body><div id="test"></div></body></html>\n' | ||
'')); | ||
}); | ||
|
||
test('renders standalone component', () async { | ||
var result = await renderComponent(div(id: 'test', []), standalone: true); | ||
|
||
expect(result, equals('<div id="test"></div>\n')); | ||
}); | ||
}); | ||
} |