blob: f611a28f7ad51f520c222c218f5126a7b7c8d2aa [file] [log] [blame]
// Copyright 2022 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:auto_submit/model/pull_request_change_type.dart';
import 'package:test/test.dart';
void main() {
final List<String> expectedNames = ['change', 'revert'];
test('Expected string value for enum is returned.', () {
for (PullRequestChangeType prChangeType in PullRequestChangeType.values) {
assert(expectedNames.contains(prChangeType.name));
}
expect(PullRequestChangeType.values.length, 2);
});
}