Skip to content

Commit

Permalink
Merge pull request #74 from lrhn/remove-upper-case-constants
Browse files Browse the repository at this point in the history
Remove usage of upper-case constants from the SDK.
  • Loading branch information
valotas authored Apr 21, 2018
2 parents 53a4408 + aaef233 commit 6025522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/mustache_issues_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void main() {
currentPath = "$currentPath/test";
}
final template = new File("$currentPath/lorem-ipsum.txt")
.readAsStringSync(encoding: UTF8);
.readAsStringSync(encoding: utf8);

final String out = render(template, {'ma': 'ma'});
expect(out, template);
Expand Down
4 changes: 2 additions & 2 deletions test/mustache_specs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ main() {
specs_dir.listSync().forEach((FileSystemEntity entity) {
var filename = entity.path;
if (entity is File && shouldRun(filename)) {
var text = entity.readAsStringSync(encoding: UTF8);
var text = entity.readAsStringSync(encoding: utf8);
_defineGroupFromFile(filename, text);
}
});
}

_defineGroupFromFile(filename, text) {
var json = JSON.decode(text);
var json = jsonDecode(text);
var tests = json['tests'];
filename = filename.substring(filename.lastIndexOf('/') + 1);
group("Specs of $filename", () {
Expand Down

0 comments on commit 6025522

Please sign in to comment.