Skip to content

Commit

Permalink
Merge pull request #121 from xsnippet/fix-test
Browse files Browse the repository at this point in the history
Fix the tests on CI
  • Loading branch information
malor committed Feb 7, 2021
2 parents 5c29968 + 8abed09 commit 31382f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/storage/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ mod tests {
assert_eq!(id.len(), length);
assert!(
id.chars().all(|c| c.is_ascii_alphanumeric()),
"is_ascii_alphanumeric() returned false: {}",
id.to_string()
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/gabbits/get-snippet.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
common:
- &datetime_regex /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+\+\d{2}:\d{2}$/
- &datetime_regex /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+(\+\d{2}:\d{2})|Z$/
- &slug_regex /^[a-zA-Z0-9]+$/

fixtures:
Expand Down

0 comments on commit 31382f3

Please sign in to comment.