blob: 15455018abe5a2f84cfa14c5d7c5698733d9db9b [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() {
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);
});
}