Skip to content

Commit

Permalink
Update changelog for version 1.5.34 and improve test code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
waldo1001 committed Dec 19, 2024
1 parent 5b24123 commit 89e7b13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log
All notable changes to the "crs-al-language-extension" extension:
## [1.5.34] - 2024-12-19
Added Support for AppSourceCop Setting MandatoryAffixes by [Kilian Seizinger](https://github.com/pri-kise)
Exclude Namespace prefix by [Vito Iacovone](https://github.com/vdevmt)
Thanks so much!

## [1.5.33] - 2024-07-15
Made it possible to have multiple extension objects names (thanks for [reporting](https://github.com/waldo1001/crs-al-language-extension/issues/305), [Natalie](https://github.com/NKarolak)).
The way it works: It's regarding setting `ExtensionObjectNamePattern`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "crs-al-language-extension",
"displayName": "waldo's CRS AL Language Extension",
"description": "Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.",
"version": "1.5.33",
"version": "1.5.34",
"publisher": "waldo",
"icon": "images/waldo.png",
"author": {
Expand Down
9 changes: 4 additions & 5 deletions src/test/suite/WorkspaceFiles.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as assert from 'assert';
import { suite, test } from 'mocha';

import { Settings } from '../../Settings';
import * as NAVTestObjectLibrary from './NAVTestObjectLibrary'
import { NAVObject } from '../../NAVObject'
import { WorkspaceFiles } from '../../WorkspaceFiles';
import * as NAVTestObjectLibrary from './NAVTestObjectLibrary'

suite("WorkspaceFiles Tests", () => {
test("getDestinationFolder - test", () => {
Expand Down Expand Up @@ -33,7 +32,7 @@ suite("WorkspaceFiles Tests", () => {
let navTestObject = NAVTestObjectLibrary.getTestCodeunit();
let navObject = new NAVObject(navTestObject.ObjectText, testSettings, navTestObject.ObjectFileName);

let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject,testSettings);
let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject, testSettings);

assert.strictEqual(foldersuggestion.toLowerCase(), '');
})
Expand All @@ -43,7 +42,7 @@ suite("WorkspaceFiles Tests", () => {
let navTestObject = NAVTestObjectLibrary.getNormalCodeunitWithLongName();
let navObject = new NAVObject(navTestObject.ObjectText, testSettings, navTestObject.ObjectFileName);

let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject,testSettings);
let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject, testSettings);

assert.strictEqual(foldersuggestion.toLowerCase().toString(), navObject.objectType.toString());
assert.notStrictEqual(foldersuggestion.toLowerCase().toString(), '');
Expand All @@ -54,7 +53,7 @@ suite("WorkspaceFiles Tests", () => {
let navTestObject = NAVTestObjectLibrary.getNormalCodeunitWithNamespace();
let navObject = new NAVObject(navTestObject.ObjectText, testSettings, navTestObject.ObjectFileName);

let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject,testSettings);
let foldersuggestion = WorkspaceFiles.getObjectTypeFolder(navObject, testSettings);

assert.notStrictEqual(foldersuggestion.toLowerCase().toString(), navObject.objectNamespace.toLowerCase().toString());
assert.strictEqual(foldersuggestion.toLowerCase().toString(), 'spycoclown\\test');
Expand Down

0 comments on commit 89e7b13

Please sign in to comment.