repo_description: node of the decentralized oracle network, bridging on and off-chain computation
repo_topics: blockchain chainlink ethereum golang oracle solidity
code: package cmd_test
  
  import (
  	"testing"
  
  	"github.com/stretchr/testify/assert"
  	"github.com/stretchr/testify/require"
  
  	"github.com/smartcontractkit/chainlink/v2/core/cmd"
  )
  
  func TestJAID(t *testing.T) {
  	t.Parallel()
  
  	jaid := cmd.JAID{ID: "1"}
  
  	t.Run("GetID", func(t *testing.T) { assert.Equal(t, "1", jaid.GetID()) })
  	t.Run("SetID", func(t *testing.T) {
  		err := jaid.SetID("2")
  		require.NoError(t, err)
  		assert.Equal(t, "2", jaid.GetID())
  	})
  }
  