Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jan 31, 2022
1 parent 7399b51 commit 9aaa1dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MDLTabsWidgetTest >> testAddTabNamedContent [
(MDLTabWidget new
addTabNamed: 'Tab label' content: 'Tab content';
yourself) ]
generatedIncludesAll: #('<a class="mdl-tabs__tab is-active" href="#id2">Tab label</a>' '<div class="mdl-tabs__panel is-active" id="id2">Tab content</div>')
generatedIncludesAll: #('<a class="mdl-tabs__tab is-active"' 'href="#id2">Tab label</a>' '<div class="mdl-tabs__panel is-active" id="id2">Tab content</div>')
]

{ #category : #tests }
Expand Down Expand Up @@ -43,5 +43,5 @@ MDLTabsWidgetTest >> testWithTwoTabs [
addTabNamed: 'Tab label' content: 'Tab content';
addTabNamed: 'Tab label 2' content: 'Tab content 2';
yourself) ]
generatedIncludesAll: #('<a class="mdl-tabs__tab is-active" href="#id2">Tab label</a>' '<div class="mdl-tabs__panel is-active" id="id2">Tab content</div>' '<a class="mdl-tabs__tab" href="#id3">Tab label 2</a>' '<div class="mdl-tabs__panel" id="id3">Tab content 2</div>')
generatedIncludesAll: #('<a class="mdl-tabs__tab is-active"' 'Tab label</a>' '<div class="mdl-tabs__panel is-active"' 'Tab content</div>' '<a class="mdl-tabs__tab"' 'Tab label 2</a>' '<div class="mdl-tabs__panel"' 'Tab content 2</div>')
]
2 changes: 1 addition & 1 deletion src/Material-Design-Lite-Widgets/MDLNestedList.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ MDLNestedList >> filteredElements [

{ #category : #accessing }
MDLNestedList >> format [
^ self strategy format ifNil: [ #asString ]
^ self strategy format
]

{ #category : #accessing }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ MDLNestedListItemRenderAbstractStrategy >> entryCustomizationHook: anObject [

{ #category : #accessing }
MDLNestedListItemRenderAbstractStrategy >> format [
^ format
^ format ifNil: [ #asString ]
]

{ #category : #accessing }
Expand Down

0 comments on commit 9aaa1dd

Please sign in to comment.