Skip to content

Commit

Permalink
fix permalink tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwill101 committed Nov 19, 2023
1 parent 9cb6683 commit 564f588
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/permalink_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ void main() {

test('Date Permalink Structure', () {
String permalink = post.buildPermalink(PermalinkStructure.date);
expect(permalink, '/dart/programming/2023/01/15/test-post.html');
expect(permalink, 'dart/programming/2023/01/15/test-post.html');
});

test('Pretty Permalink Structure', () {
String permalink = post.buildPermalink(PermalinkStructure.pretty);
expect(permalink, '/dart/programming/2023/01/15/test-post/');
expect(permalink, 'dart/programming/2023/01/15/test-post/');
});

test('Ordinal Permalink Structure', () {
String permalink = post.buildPermalink(PermalinkStructure.ordinal);
expect(permalink, '/dart/programming/2023/015/test-post.html');
expect(permalink, 'dart/programming/2023/015/test-post.html');
});

test('Weekdate Permalink Structure', () {
String permalink = post.buildPermalink(PermalinkStructure.weekdate);
expect(permalink, '/dart/programming/2023/W02/Sun/test-post.html');
expect(permalink, 'dart/programming/2023/W02/Sun/test-post.html');
});

test('None Permalink Structure', () {
String permalink = post.buildPermalink(PermalinkStructure.none);
expect(permalink, '/dart/programming/test-post.html');
expect(permalink, 'dart/programming/test-post.html');
});
});
}

0 comments on commit 564f588

Please sign in to comment.