Skip to content

Commit

Permalink
add support for apple silicon... add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthom90 committed Dec 15, 2020
1 parent 1a9d1d8 commit b98fda8
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -31,6 +31,18 @@ public void detect_win_doesntLookForAlpine() {
verifyNoMoreInteractions(File.class); // doesn't look for a file path
}

@Test
public void detect_arm_mac_download_x64_binary() {
mockStatic(OS.class);
mockStatic(Architecture.class);

when(OS.guess()).thenReturn(OS.Mac);
when(Architecture.guess()).thenReturn(Architecture.arm64);

Platform platform = Platform.guess();
assertEquals("darwin-x64", platform.getNodeClassifier());
}

@Test
public void detect_linux_notAlpine() throws Exception {
mockStatic(OS.class);
Expand Down

0 comments on commit b98fda8

Please sign in to comment.