-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dr-svg-sprites: nodejs doesn't found dr-svg-sprites #513
- Loading branch information
Showing
3 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
jooby-assets-nodejs/src/test/java/org/jooby/assets/NodejsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.jooby.assets; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
import java.io.File; | ||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
import org.junit.Test; | ||
|
||
public class NodejsTest { | ||
|
||
@Test | ||
public void deployjar() throws Exception { | ||
Nodejs node = new Nodejs(new File("target")); | ||
Path dir = node.deploy("META-INF/resources/webjars/jquery/3.1.1"); | ||
assertEquals(Paths.get("target", "node_modules", "META-INF.resources.webjars.jquery.3.1.1"), | ||
dir); | ||
assertTrue(dir.resolve("package.json").toFile().exists()); | ||
} | ||
} |