mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 02:50:19 +00:00
fix unit tests
This commit is contained in:
parent
5d00e0bef0
commit
9453f83c94
4 changed files with 6 additions and 3 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -20,5 +20,5 @@ jobs:
|
|||
with:
|
||||
name: soywod
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: Test
|
||||
run: nix run .#test
|
||||
- name: Build then test
|
||||
run: nix build
|
||||
|
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Fixed
|
||||
|
||||
- Fixed Windows releases (due to typo in the github action script).
|
||||
- Fixed unit tests.
|
||||
|
||||
## [0.7.2] - 2023-05-01
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
cp assets/himalaya.desktop $out/share/applications/
|
||||
'';
|
||||
};
|
||||
doCheck = true;
|
||||
cargoTestOptions = opts: opts ++ [ "--lib" ];
|
||||
} // pkgs.lib.optionalAttrs (!isNull targetPlatform) {
|
||||
CARGO_BUILD_TARGET = targetPlatform;
|
||||
} // package;
|
||||
|
|
|
@ -257,7 +257,7 @@ mod tests {
|
|||
let mut printer = PrinterServiceTest::default();
|
||||
let mut backend = TestBackend {};
|
||||
|
||||
assert!(list(None, &account_config, &mut printer, &mut backend).is_ok());
|
||||
assert!(list(&account_config, &mut printer, &mut backend, None).is_ok());
|
||||
assert_eq!(
|
||||
concat![
|
||||
"\n",
|
||||
|
|
Loading…
Reference in a new issue