-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
Email list ux improvements
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ members = ["openai"] | |
|
||
[package] | ||
name = "dwata" | ||
version = "0.1.6" | ||
version = "0.2.0" | ||
description = "AI assisted app for our private data" | ||
authors = ["Sumit Datta <[email protected]>"] | ||
license = "Apache-2.0 license" | ||
|
@@ -56,6 +56,7 @@ slug = "0.1.5" | |
openai = { version = "2.0.0", path = "openai" } | ||
tantivy = "0.22.0" | ||
tauri-plugin-shell = "2.0.0-rc.2" | ||
regex = "1.10.6" | ||
|
||
[features] | ||
# this feature is used for production builds or when `devPath` points to the filesystem | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use super::helpers::clean_email_body_text; | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use crate::email::helpers::clean_email_body_text; | ||
|
||
// use super::*; | ||
#[test] | ||
fn check_consecutive_end_of_lines_removed() { | ||
let body_text = "\n\n\n\n\n\n\n".to_string(); | ||
let cleaned = clean_email_body_text(&body_text); | ||
assert_eq!(cleaned, "\n"); | ||
} | ||
|
||
#[test] | ||
fn check_consecutive_spaces_removed() { | ||
let body_text = " ".to_string(); | ||
let cleaned = clean_email_body_text(&body_text); | ||
assert_eq!(cleaned, " "); | ||
} | ||
|
||
#[test] | ||
fn check_consecutive_underscores_removed() { | ||
let body_text = "_______________________________________".to_string(); | ||
let cleaned = clean_email_body_text(&body_text); | ||
assert_eq!(cleaned, ""); | ||
} | ||
|
||
#[test] | ||
fn check_consecutive_dashes_removed() { | ||
let body_text = "---------------------------------".to_string(); | ||
let cleaned = clean_email_body_text(&body_text); | ||
assert_eq!(cleaned, ""); | ||
} | ||
} |