Skip to content

Commit

Permalink
remove fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
fremartini committed Nov 27, 2023
1 parent 5844a43 commit be36bbf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import 'dart:convert';
import 'package:coffeecard/features/authentication/data/models/authenticated_user_model.dart';
import 'package:flutter_test/flutter_test.dart';

import '../../../../fixtures/fixture_reader.dart';

void main() {
const model = AuthenticatedUserModel(
email: 'email',
Expand All @@ -15,7 +13,11 @@ void main() {
group('fromJson', () {
test('should return model', () {
// arrange
final jsonString = fixture('authenticated_user/authenticated_user.json');
final jsonString = json.encode({
'email': 'email',
'token': 'token',
'passcode': 'passcode',
});

// act
final actual = AuthenticatedUserModel.fromJson(
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/authenticated_user/authenticated_user.json

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions test/fixtures/fixture_reader.dart

This file was deleted.

0 comments on commit be36bbf

Please sign in to comment.