github.com/sapplications/sb@v0.0.0-20240116135441-1a13cafe3497/cmd/creator_test.go (about)

     1  // Copyright 2022 Vitalii Noha vitalii.noga@gmail.com. All rights reserved.
     2  
     3  package cmd
     4  
     5  import (
     6  	"os"
     7  
     8  	"gopkg.in/check.v1"
     9  )
    10  
    11  func (s *CmdSuite) TestNewSbApp(c *check.C) {
    12  	// create a temporary folder and change the current working directory
    13  	currFolder, _ := os.Getwd()
    14  	defer os.Chdir(currFolder)
    15  	os.Chdir(c.MkDir())
    16  	// generate a new application unit
    17  	c.Assert(s.New("sb"), check.IsNil)
    18  }