blob: 543d414de94d5a0ca73d1296f064f08a89ca265c [file] [log] [blame]
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:app_flutter/widgets/web_image.dart';
void main() {
testWidgets('WebImage.enabled', (WidgetTester tester) async {
expect(const WebImage(imageUrl: 'url').enabled, isFalse); // because this is a test
expect(const WebImage(imageUrl: 'url', enabled: false).enabled, isFalse);
expect(const WebImage(imageUrl: 'url', enabled: true).enabled, isTrue);
});
}