zefyr

attributes_test.dart 527B

12345678910111213141516
  1. // Copyright (c) 2018, the Zefyr project authors. Please see the AUTHORS file
  2. // for details. All rights reserved. Use of this source code is governed by a
  3. // BSD-style license that can be found in the LICENSE file.
  4. import 'package:test/test.dart';
  5. import 'package:notus/notus.dart';
  6. void main() {
  7. group('$NotusStyle', () {
  8. test('get', () {
  9. var attrs = NotusStyle.fromJson(<String, dynamic>{'block': 'ul'});
  10. var attr = attrs.get(NotusAttribute.block);
  11. expect(attr, NotusAttribute.ul);
  12. });
  13. });
  14. }