mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update copyright notice to latest guidance (#12190)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
Describe "SxS Module Path Basic Tests" -tags "CI" {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
using namespace Microsoft.PowerShell.Commands
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
Describe "New-ModuleManifest basic tests" -tags "CI" {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
Describe "Tests for paths of submodules in module manifest" -tags "CI" {
|
||||
|
||||
@@ -12,10 +12,10 @@ Describe "Tests for paths of submodules in module manifest" -tags "CI" {
|
||||
$nestedModuleFilePath = Join-Path $nestedModulePath $submoduleFileName
|
||||
|
||||
BeforeEach {
|
||||
|
||||
|
||||
Remove-Module $moduleName -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item $moduleRootPath -Recurse -Force -ErrorAction SilentlyContinue
|
||||
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $nestedModulePath
|
||||
"function TestModuleFunction{'Hello from TestModuleFunction'}" | Out-File $nestedModuleFilePath
|
||||
}
|
||||
@@ -40,7 +40,7 @@ Describe "Tests for paths of submodules in module manifest" -tags "CI" {
|
||||
|
||||
It "Test if NestedModule path is <SubModulePath>" -TestCases $testCases {
|
||||
param($SubModulePath)
|
||||
|
||||
|
||||
New-ModuleManifest $moduleFilePath -NestedModules @($SubModulePath)
|
||||
Import-Module $moduleFilePath
|
||||
(Get-Module $moduleName).ExportedCommands.Keys.Contains('TestModuleFunction') | Should -BeTrue
|
||||
@@ -48,7 +48,7 @@ Describe "Tests for paths of submodules in module manifest" -tags "CI" {
|
||||
|
||||
It "Test if RootModule path is <SubModulePath>" -TestCases $testCases {
|
||||
param($SubModulePath)
|
||||
|
||||
|
||||
New-ModuleManifest $moduleFilePath -RootModule $SubModulePath
|
||||
Import-Module $moduleFilePath
|
||||
(Get-Module $moduleName).ExportedCommands.Keys.Contains('TestModuleFunction') | Should -BeTrue
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
Import-Module HelpersCommon
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
Describe "Update-ModuleManifest tests" -tags "CI" {
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Author = 'PowerShell'
|
||||
CompanyName = 'Microsoft Corporation'
|
||||
|
||||
# Copyright statement for this module
|
||||
Copyright = 'Copyright (c) Microsoft Corporation. All rights reserved.'
|
||||
Copyright = 'Copyright (c) Microsoft Corporation.'
|
||||
|
||||
# Description of the functionality provided by this module
|
||||
Description = 'NestedRequiredModule1 module'
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
function Get-NestedRequiredModule1 { Get-Date }
|
||||
|
||||
Reference in New Issue
Block a user