package logger

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"go.uber.org/zap"
)

func TestWithModule(t *testing.T) {
	baseLogger := zap.NewNop()
	moduleLogger := WithModule(baseLogger, "handler.proxy")

	assert.NotNil(t, moduleLogger)
}

func TestWithModuleMultiple(t *testing.T) {
	baseLogger := zap.NewNop()

	logger1 := WithModule(baseLogger, "handler.proxy")
	logger2 := WithModule(baseLogger, "provider.client")

	assert.NotNil(t, logger1)
	assert.NotNil(t, logger2)
}
