mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
test(virtualScroll): fix virtual scroll unit test
This commit is contained in:
@ -535,7 +535,7 @@ describe('VirtualScroll', () => {
|
||||
|
||||
function getView(width?:number, height?: number, top?: number, left?: number): any {
|
||||
return {
|
||||
setLocal: function(){},
|
||||
context: {},
|
||||
rootNodes: [{
|
||||
nodeType: 1,
|
||||
offsetWidth: width,
|
||||
|
@ -278,7 +278,6 @@ export function parseTemplate(template: string): string[] {
|
||||
|
||||
let words = template.split(' ').filter(w => w.length > 0);
|
||||
words.forEach((word, i) => {
|
||||
if (word.length) {
|
||||
FORMAT_KEYS.forEach(format => {
|
||||
if (word === format.f) {
|
||||
if (word === FORMAT_A || word === FORMAT_a) {
|
||||
@ -294,7 +293,6 @@ export function parseTemplate(template: string): string[] {
|
||||
formats.push(word);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return formats;
|
||||
|
Reference in New Issue
Block a user