-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-75 Co-authored-by: matusekma <[email protected]>
- Loading branch information
Showing
10 changed files
with
126 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import 'package:emarsys_sdk/emarsys_sdk.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:integration_test/integration_test.dart'; | ||
|
||
void main() { | ||
const CONTACT_FIELD_ID = 2575; | ||
const contactFieldId = 2575; | ||
|
||
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | ||
|
||
|
@@ -15,16 +16,16 @@ void main() { | |
testWidgets("call setContact and check contactFieldId", | ||
(WidgetTester tester) async { | ||
await Emarsys.setContact(2575, "[email protected]") | ||
.then((value) => print("SET CONTACT")) | ||
.then((value) => debugPrint("SET CONTACT")) | ||
.catchError((error) => expect(error, null)); | ||
|
||
final result = await Emarsys.config.contactFieldId(); | ||
expect(result, equals(CONTACT_FIELD_ID)); | ||
expect(result, equals(contactFieldId)); | ||
}); | ||
|
||
testWidgets("call clearContact", (WidgetTester tester) async { | ||
await Emarsys.clearContact() | ||
.then((value) => print("CLEAR CONTACT")) | ||
.then((value) => debugPrint("CLEAR CONTACT")) | ||
.catchError((error) => expect(error, 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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