Example #1
0
        public void Can_load_modules()
        {
            // Act
            NodeJS.Install();
            var wasInstalled = NodeJS.CheckInstallation();
            var modulesExist = Directory.Exists(NodeJS.PackageDirectory);

            // Assert
            wasInstalled.ShouldBeTrue();
            modulesExist.ShouldBeTrue();
        }
Example #2
0
        public void Can_load_modules()
        {
            // Arrange
            var node_modules = Path.Combine(NodeJS.InstallationDirectory, "node_modules");

            //if (Directory.Exists(node_modules)) Directory.Delete(node_modules, recursive: true);

            // Act
            NodeJS.Install();
            var installed    = NodeJS.CheckInstallation();
            var modulesExist = Directory.Exists(node_modules);

            // Assert
            installed.ShouldBeTrue();
            modulesExist.ShouldBeTrue();
        }