Skip to content

Commit

Permalink
remove padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Jun 7, 2024
1 parent b5dd3e4 commit 4ec2f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lustre_hash_state.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ pub fn from_base64(value: String) {
pub fn to_base64(value: String) {
value
|> bit_array.from_string
|> bit_array.base64_url_encode(True)
|> bit_array.base64_url_encode(False)
}
4 changes: 2 additions & 2 deletions test/lustre_hash_state_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ pub fn encoded_stringify_hash_test() {
}

pub fn from_base64_test() {
"eWF5IQ=="
"eWF5IQ"
|> lustre_hash_state.from_base64
|> should.equal("yay!")
}

pub fn to_base64_test() {
"yay!"
|> lustre_hash_state.to_base64
|> should.equal("eWF5IQ==")
|> should.equal("eWF5IQ")
}

0 comments on commit 4ec2f7b

Please sign in to comment.