mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-08-12 06:10:55 +02:00
60d7b6f97e
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
30 lines
1.2 KiB
Dart
30 lines
1.2 KiB
Dart
import "package:arcane_framework/src/services/authentication/authentication_service.dart";
|
|
import "package:flutter_test/flutter_test.dart";
|
|
|
|
void main() {
|
|
group("SignUpStep", () {
|
|
test("values are correct", () {
|
|
expect(SignUpStep.confirmSignUp.index, 0);
|
|
expect(SignUpStep.done.index, 1);
|
|
});
|
|
});
|
|
|
|
group("AuthenticationStatus", () {
|
|
test("isAuthenticated returns true only for authenticated", () {
|
|
expect(AuthenticationStatus.authenticated.isAuthenticated, isTrue);
|
|
expect(AuthenticationStatus.unauthenticated.isAuthenticated, isFalse);
|
|
expect(AuthenticationStatus.unknown.isAuthenticated, isFalse);
|
|
});
|
|
test("isUnauthenticated returns true for unauthenticated and unknown", () {
|
|
expect(AuthenticationStatus.authenticated.isUnauthenticated, isFalse);
|
|
expect(AuthenticationStatus.unauthenticated.isUnauthenticated, isTrue);
|
|
expect(AuthenticationStatus.unknown.isUnauthenticated, isTrue);
|
|
});
|
|
test("isUnknown returns true only for unknown", () {
|
|
expect(AuthenticationStatus.authenticated.isUnknown, isFalse);
|
|
expect(AuthenticationStatus.unauthenticated.isUnknown, isFalse);
|
|
expect(AuthenticationStatus.unknown.isUnknown, isTrue);
|
|
});
|
|
});
|
|
}
|